Update the run targets for the Makefiles for the docker containers.

This was previously using the standard docker makefile I use as a starting point for all of my docker makefiles. Now it will properly mount the source directory.
This commit is contained in:
Tom Alexander
2023-08-27 17:29:55 -04:00
parent cc86591a6c
commit 378b6bb391
8 changed files with 13 additions and 53 deletions

View File

@@ -26,10 +26,11 @@ else
@echo "REMOTE_REPO not defined, not removing from remote repo."
endif
# NOTE: This target will write to folders underneath the git-root
.PHONY: run
run:
docker run --rm -i -t $(IMAGE_NAME)
docker run --rm --init -v "$$(readlink -f ../../):/source" --workdir=/source $(IMAGE_NAME)
.PHONY: shell
shell:
docker run --rm -i -t --entrypoint /bin/bash $(IMAGE_NAME)
docker run --rm -i -t --entrypoint /bin/sh $(IMAGE_NAME)