support in-container make

This commit is contained in:
2021-05-19 22:57:50 +03:00
committed by Motiejus Jakštys
parent c1b2134575
commit 872d954a0b
2 changed files with 5 additions and 3 deletions

View File

@@ -7,7 +7,8 @@ if [[ -z "$(docker images -q --filter "reference=$NAME")" ]]; then
docker build -t "$NAME" - < Dockerfile
fi
exec docker run --rm \
exec docker run -ti --rm \
--net=host \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ${PWD}:/x \
-w /x \