build: tools/podman.sh — docker.sh-Pendant für podman (gleiches Image, gleicher Mount)
This commit is contained in:
Executable
+6
@@ -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 "$@"
|
||||||
Reference in New Issue
Block a user