builder/makepkg-podman
fbt 125903dbcd readme; also interactivity
Signed-off-by: fbt <fbt@fleshless.org>
2021-03-06 07:31:06 +03:00

16 lines
271 B
Bash
Executable File

#!/usr/bin/env bash
image=${PODMAN_IMAGE:-localhost/spark:autobuilder}
podman_cmd=(
podman run --rm -it -u root
--userns=keep-id
-v "$PWD:/buildroot"
--workdir /buildroot
--name "autobuilder.$$"
--env "BUILDUSER=$USER"
"$image" /build "$@"
)
"${podman_cmd[@]}"