Refactor
This commit is contained in:
parent
fcfbf4f36d
commit
301eb2a60b
13
kernel.go
13
kernel.go
@ -296,18 +296,7 @@ func generateBaseDockerImage(registry string, commands []config.DockerCommand,
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, c := range commands {
|
for _, c := range commands {
|
||||||
switch c.DistroType {
|
d += "RUN " + c.Command + "\n"
|
||||||
case config.Ubuntu:
|
|
||||||
d += "RUN " + c.Command + "\n"
|
|
||||||
case config.CentOS:
|
|
||||||
d += "RUN " + c.Command + "\n"
|
|
||||||
case config.Debian:
|
|
||||||
d += "RUN " + c.Command + "\n"
|
|
||||||
default:
|
|
||||||
err = fmt.Errorf("%s not yet supported",
|
|
||||||
sk.DistroType.String())
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch sk.DistroType {
|
switch sk.DistroType {
|
||||||
|
Loading…
Reference in New Issue
Block a user