support in-container make

This commit is contained in:
Motiejus Jakštys
2021-05-09 16:58:17 +03:00
parent c1196dc45b
commit 4decf5c851
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 \