2021-02-26 23:50:00 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2021-03-06 04:06:47 +00:00
|
|
|
image=${PODMAN_IMAGE:-localhost/spark:autobuilder}
|
2021-02-26 23:50:00 +00:00
|
|
|
|
2021-03-06 03:41:56 +00:00
|
|
|
podman_cmd=(
|
2021-03-06 04:31:06 +00:00
|
|
|
podman run --rm -it -u root
|
2021-03-06 03:41:56 +00:00
|
|
|
-v "$PWD:/buildroot"
|
|
|
|
--workdir /buildroot
|
|
|
|
--name "autobuilder.$$"
|
|
|
|
--env "BUILDUSER=$USER"
|
2021-03-06 04:06:47 +00:00
|
|
|
"$image" /build "$@"
|
2021-03-06 03:41:56 +00:00
|
|
|
)
|
2021-02-26 23:50:00 +00:00
|
|
|
|
2021-03-06 03:41:56 +00:00
|
|
|
"${podman_cmd[@]}"
|