From 410a7822b293d703c4699c51cb0f0244ee0a4c3f Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Mon, 5 Feb 2024 18:47:15 -0700 Subject: [PATCH] Make it work with podman --- config.yaml => config/_default/hugo.yaml | 0 run.sh | 18 ++++++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) rename config.yaml => config/_default/hugo.yaml (100%) diff --git a/config.yaml b/config/_default/hugo.yaml similarity index 100% rename from config.yaml rename to config/_default/hugo.yaml diff --git a/run.sh b/run.sh index f94939e..0fb6b77 100755 --- a/run.sh +++ b/run.sh @@ -1,9 +1,9 @@ #! /bin/sh case "$(hostname)" in - WE47763) - baseURL=http://localhost:1313/ - ;; + WE47763) + baseURL=http://localhost:1313/ + ;; sweetums) baseURL=http://sweetums.lan:1313/ ;; @@ -11,13 +11,19 @@ case "$(hostname)" in baseURL=http://penguin.linux.test:1313/ ;; *) - baseURL=http://$(hostname --fqdn):1313/ + baseURL=http://$(hostname):1313/ ;; esac -docker run \ +src=$(realpath $(dirname $0)) + +podman run \ --rm -i \ - -v $(realpath $(dirname $0)):/src \ + -v $src/content:/src/content:ro \ + -v $src/layouts:/src/layouts:ro \ + -v $src/config:/src/config:ro \ + -v $src/static:/src/static:ro \ + -v $src/.git:/src/.git:ro \ -u $(id -u):$(id -g) \ -p 1313:1313 \ klakegg/hugo:ext server \