summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2020-12-03 12:51:53 +0100
committerRobert Günzler <r@gnzler.io>2020-12-07 19:28:05 +0100
commit5e82d2c9426910247bd836f5de8cb7243cc5ebff (patch)
treed5ddd4f18e37dc73ca6930082c8fb0cb5d4fcf7b
parent1a71ce1c53510c1b9163b38acf60ecaaa7aa4c6f (diff)
bin/compose: use buildkit and mount local dirs
-rwxr-xr-xbin/compose4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/compose b/bin/compose
index e4a5dbd..70c3072 100755
--- a/bin/compose
+++ b/bin/compose
@@ -6,5 +6,9 @@ exec docker run \
     --net host \
     --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
     --mount type=bind,src="$cwd",dst="$container_cwd" \
+    --mount type=bind,src=/,dst=/rootfs \
+    --env COMPOSE_DOCKER_CLI_BUILD=1 \
+    --env DOCKER_BUILDKIT=1 \
+    --env HERE="$cwd" \
     -w "$container_cwd" \
     docker/compose:latest $@