Make it work with podman
This commit is contained in:
parent
eedd8a4127
commit
410a7822b2
12
run.sh
12
run.sh
|
@ -11,13 +11,19 @@ case "$(hostname)" in
|
||||||
baseURL=http://penguin.linux.test:1313/
|
baseURL=http://penguin.linux.test:1313/
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
baseURL=http://$(hostname --fqdn):1313/
|
baseURL=http://$(hostname):1313/
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
docker run \
|
src=$(realpath $(dirname $0))
|
||||||
|
|
||||||
|
podman run \
|
||||||
--rm -i \
|
--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) \
|
-u $(id -u):$(id -g) \
|
||||||
-p 1313:1313 \
|
-p 1313:1313 \
|
||||||
klakegg/hugo:ext server \
|
klakegg/hugo:ext server \
|
||||||
|
|
Loading…
Reference in New Issue