Fix up pid1

This commit is contained in:
Radon Rosborough 2020-06-05 19:47:39 -06:00
parent e937c8ffc5
commit 4b82e93042
3 changed files with 6 additions and 1 deletions

View File

@ -11,3 +11,4 @@ EXPOSE 6119
ENTRYPOINT ["/usr/local/bin/pid1.bash"]
COPY scripts/pid1.bash /usr/local/bin/
CMD bash

View File

@ -11,4 +11,4 @@ help: ## Show this message
.PHONY: docker
docker: ## Run shell with source code and deps inside Docker
scripts/docker.bash build . -t fast-sandbox --build-arg "UID=$(UID)"
scripts/docker.bash run -it --rm -v "$PWD" -p 6119:6119 fast-sandbox
scripts/docker.bash run -it --rm -v "$(PWD):/home/docker/src" -p 6119:6119 fast-sandbox

View File

@ -7,4 +7,8 @@ export LANG=C.UTF-8
export LC_ALL=C.UTF-8
export SHELL="$(which bash)"
if [[ -d src ]]; then
cd src
fi
exec "$@"