Refactor
This commit is contained in:
parent
fcfbf4f36d
commit
301eb2a60b
11
kernel.go
11
kernel.go
@ -296,18 +296,7 @@ func generateBaseDockerImage(registry string, commands []config.DockerCommand,
|
||||
}
|
||||
|
||||
for _, c := range commands {
|
||||
switch c.DistroType {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user