We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ea773f6 + 9c67257 commit 91d2f2dCopy full SHA for 91d2f2d
hack/shell
@@ -14,4 +14,11 @@ SSH=
14
if [ -n "$MOUNT_SSH_AUTH_SOCK" ]; then
15
SSH="-v $SSH_AUTH_SOCK:$SSH_AUTH_SOCK -e SSH_AUTH_SOCK"
16
fi
17
-docker run $SSH -it --privileged -v /tmp --net=host -e BUILDKIT_REGISTRY_MIRROR_DIR=/root/.cache/registry --rm $(cat $iidfile)
+
18
+volumes=
19
+if [ -n "$MOUNT_BUILDKIT_SOURCE" ]; then
20
+ volumes="-v $(pwd):/src"
21
+fi
22
23
+set -x
24
+docker run $SSH $volumes -it --privileged -v /tmp --net=host -e BUILDKIT_REGISTRY_MIRROR_DIR=/root/.cache/registry --rm $(cat $iidfile)
0 commit comments