Merge pull request #2261 from tonistiigi/daemonless-wait
daemonless: wait for daemon to finish before exitv0.9 dockerfile/1.3.0
commit
c8bb937807
|
@ -19,7 +19,7 @@ set -eu
|
|||
# * addr
|
||||
# * log
|
||||
tmp=$(mktemp -d /tmp/buildctl-daemonless.XXXXXX)
|
||||
trap "kill \$(cat $tmp/pid); rm -rf $tmp" EXIT
|
||||
trap "kill \$(cat $tmp/pid); wait \$(cat $tmp/pid) || true; rm -rf $tmp" EXIT
|
||||
|
||||
startBuildkitd() {
|
||||
addr=
|
||||
|
@ -57,3 +57,4 @@ waitForBuildkitd() {
|
|||
startBuildkitd
|
||||
waitForBuildkitd
|
||||
$BUILDCTL --addr=$(cat $tmp/addr) "$@"
|
||||
|
||||
|
|
Loading…
Reference in New Issue