[in-container] fix directories

This commit is contained in:
Motiejus Jakštys 2021-05-19 23:53:06 +03:00 committed by Motiejus Jakštys
parent d100f215d7
commit 98baa3f734

View File

@ -7,7 +7,7 @@ set -euo pipefail
# #
# Usage: # Usage:
# ./in-container make help # ./in-container make help
# ./in-container make -j mj-msc-full.pdf # ./in-container make -j2 mj-msc-full.pdf
# ... # ...
NAME=wm-mj-build NAME=wm-mj-build
@ -18,6 +18,6 @@ fi
exec docker run -ti --rm \ exec docker run -ti --rm \
--net=host \ --net=host \
-v /var/run/docker.sock:/var/run/docker.sock \ -v /var/run/docker.sock:/var/run/docker.sock \
-v $(git rev-parse --show-toplevel):/x \ -v ${PWD}:/x \
-w /x/$(basename ${PWD}) \ -w /x \
"$NAME" "$@" "$NAME" "$@"