18 lines
293 B
Bash
Executable File
18 lines
293 B
Bash
Executable File
#!/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[@]}"
|