Clean up changes from #1505
Signed-off-by: Joel Longtine <joel@dagger.io>
This commit is contained in:
parent
b0b84db5e8
commit
cc54aa6795
@ -44,7 +44,11 @@ package engine
|
|||||||
volume?: [string]: {}
|
volume?: [string]: {}
|
||||||
workdir?: string
|
workdir?: string
|
||||||
label?: [string]: string
|
label?: [string]: string
|
||||||
|
stopsignal?: string
|
||||||
healthcheck?: #HealthCheck
|
healthcheck?: #HealthCheck
|
||||||
|
argsescaped?: bool
|
||||||
|
onbuild?: [...string]
|
||||||
|
stoptimeout?: int
|
||||||
shell?: [...string]
|
shell?: [...string]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@ package docker
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"list"
|
"list"
|
||||||
"strings"
|
|
||||||
|
|
||||||
"dagger.io/dagger"
|
"dagger.io/dagger"
|
||||||
"dagger.io/dagger/engine"
|
"dagger.io/dagger/engine"
|
||||||
@ -139,32 +138,29 @@ import (
|
|||||||
}
|
}
|
||||||
if cmd == _|_ {
|
if cmd == _|_ {
|
||||||
args: list.Concat([
|
args: list.Concat([
|
||||||
if _image.config.Entrypoint != _|_ {
|
if _image.config.entrypoint != _|_ {
|
||||||
_image.config.Entrypoint
|
_image.config.entrypoint
|
||||||
},
|
},
|
||||||
if _image.config.Cmd != _|_ {
|
if _image.config.cmd != _|_ {
|
||||||
_image.config.Cmd
|
_image.config.cmd
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
"env": env
|
"env": env
|
||||||
if _image.config.Env != _|_ {
|
if _image.config.env != _|_ {
|
||||||
for _, envvar in _image.config.Env {
|
for key, val in _image.config.env {
|
||||||
let split = strings.SplitN(envvar, "=", 2)
|
if env[key] == _|_ {
|
||||||
let k = split[0]
|
env: "\(key)": val
|
||||||
let v = split[1]
|
|
||||||
if env[k] == _|_ {
|
|
||||||
env: "\(k)": v
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"workdir": workdir
|
"workdir": workdir
|
||||||
if workdir == _|_ && _image.config.WorkingDir != _|_ {
|
if workdir == _|_ && _image.config.workdir != _|_ {
|
||||||
workdir: _image.config.WorkingDir
|
workdir: _image.config.workdir
|
||||||
}
|
}
|
||||||
"user": user
|
"user": user
|
||||||
if user == _|_ && _image.config.User != _|_ {
|
if user == _|_ && _image.config.user != _|_ {
|
||||||
user: _image.config.User
|
user: _image.config.user
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user