You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build-image.sh
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ image_name=${tags[0]}
83
83
# build the image
84
84
#################################################
85
85
log INFO "Building docker image [$image_name]..."
86
-
if [[ $OSTYPE== cygwin ||$OSTYPE== msys ]];then
86
+
if [[ $OSTYPE=="cygwin"||$OSTYPE=="msys" ]];then
87
87
project_root=$(cygpath -w "$project_root")
88
88
fi
89
89
@@ -97,7 +97,7 @@ esac
97
97
set -x
98
98
99
99
docker --version
100
-
exportDOCKER_BUILD_KIT=1
100
+
exportDOCKER_BUILDKIT=1
101
101
export DOCKER_CLI_EXPERIMENTAL=1 # prevents "docker: 'buildx' is not a docker command."
102
102
103
103
# Register QEMU emulators for all architectures so Docker can run and build multi-arch images
@@ -111,6 +111,7 @@ echo "
111
111
112
112
docker buildx version # ensures buildx is enabled
113
113
docker buildx create --config /etc/buildkitd.toml --use # prevents: error: multiple platforms feature is currently not supported for docker driver. Please switch to a different driver (eg. "docker buildx create --use")
114
+
trap'docker buildx stop' EXIT
114
115
# shellcheck disable=SC2154,SC2046 # base_layer_cache_key is referenced but not assigned / Quote this to prevent word splitting
0 commit comments