From a3a48cdf6829ec163bfd4d54ed0de358360a0adc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20von=20B=C3=BClow?= <48244604+rvbuelow@users.noreply.github.com> Date: Mon, 21 Sep 2026 17:50:36 +0200 Subject: [PATCH] =?UTF-8?q?build:=20tools/podman.sh=20=E2=80=94=20docker.s?= =?UTF-8?q?h-Pendant=20f=C3=BCr=20podman=20(gleiches=20Image,=20gleicher?= =?UTF-8?q?=20Mount)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/podman.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 tools/podman.sh diff --git a/tools/podman.sh b/tools/podman.sh new file mode 100755 index 0000000..06dfda2 --- /dev/null +++ b/tools/podman.sh @@ -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 "$@"