From 85e4f3c44aa01c6fea732965a747f26731adab73 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Sat, 13 Jun 2020 14:23:57 +0200 Subject: move some scripts from bin/hibiki to bin --- bin/compose | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/compose (limited to 'bin/compose') diff --git a/bin/compose b/bin/compose new file mode 100755 index 0000000..e4a5dbd --- /dev/null +++ b/bin/compose @@ -0,0 +1,10 @@ +#!/bin/sh +cwd="$PWD" +container_cwd="/run/cwd/$(basename "$cwd")" +exec docker run \ + --rm -it \ + --net host \ + --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \ + --mount type=bind,src="$cwd",dst="$container_cwd" \ + -w "$container_cwd" \ + docker/compose:latest $@ -- cgit 1.4.1