build: tools/podman.sh — docker.sh-Pendant für podman (gleiches Image, gleicher Mount)

This commit is contained in:
Robin von Bülow
2026-09-21 17:50:36 +02:00
parent 1c960ad5cc
commit a3a48cdf68
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# docker.sh equivalent using podman (same image, same mount, no emulation flag needed if native)
set -euo pipefail
ROOT=$(cd -P "$(dirname "$0")/.." >/dev/null && pwd -P)
podman image exists ninlight-build || podman build --platform linux/amd64 -t ninlight-build "$ROOT/docker"
exec podman run --rm --platform linux/amd64 -v "$ROOT":/work -w /work ninlight-build "$@"