diff options
| author | Robert Günzler <r@gnzler.io> | 2020-06-13 14:23:57 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2020-06-13 14:23:57 +0200 |
| commit | 85e4f3c44aa01c6fea732965a747f26731adab73 (patch) | |
| tree | 7a42f106448a6029e9f5816967c7311ce4084b22 /bin/compose | |
| parent | 898cd6f445cc995b8383a73ecd1a27c19560f92d (diff) | |
move some scripts from bin/hibiki to bin
Diffstat (limited to 'bin/compose')
| -rwxr-xr-x | bin/compose | 10 |
1 files changed, 10 insertions, 0 deletions
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 $@ |