builder/makepkg-podman

18 lines
293 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
image=${PODMAN_IMAGE:-localhost/spark:autobuilder}
echo "Image: $image"
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[@]}"