From 9b918455a4cf4c75d58442a40c8f8760f80f27e3 Mon Sep 17 00:00:00 2001 From: Christian Reitter Date: Thu, 19 Dec 2024 21:40:29 +0100 Subject: [PATCH] Work on podman rootless compatibility --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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