diff --git a/Makefile b/Makefile index 78c863a..607f567 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ # flexible use with docker and podman platform ?= docker container_workdir = /home/builder/workdir/ +# useful option: "--userns=keep-id" +# platform_extra_options + .PHONY: build build: @@ -36,8 +39,8 @@ build-dev: .PHONY: dev dev: build-dev - $(platform) run --rm --expose 4000 -p 127.0.0.1:4000:4000 --mount type=bind,source=${PWD},target=${container_workdir} -it dev-milksad-website jekyll serve -H 0.0.0.0 + $(platform) run --rm --expose 4000 -p 127.0.0.1:4000:4000 --mount type=bind,source=${PWD},target=${container_workdir} $(platform_extra_options) -it dev-milksad-website jekyll serve -H 0.0.0.0 .PHONY: dev-shell dev-shell: build-dev - $(platform) run --rm --expose 4000 -p 127.0.0.1:4000:4000 --mount type=bind,source=${PWD},target=${container_workdir} -it dev-milksad-website sh + $(platform) run --rm --expose 4000 -p 127.0.0.1:4000:4000 --mount type=bind,source=${PWD},target=${container_workdir} $(platform_extra_options) -it dev-milksad-website sh