2022-10-14 21:13:12 -07:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
: \
|
2022-10-14 21:39:36 -07:00
|
|
|
&& [ "$(id -u)" -eq 0 ] \
|
2022-10-14 21:13:12 -07:00
|
|
|
&& [ -s build-all ] \
|
|
|
|
&& { [ ! -d out ] || mkdir out || exit ;} \
|
2022-10-14 21:39:36 -07:00
|
|
|
&& chmod -R 0755 . \
|
|
|
|
&& chown -R 0:1000 . \
|
|
|
|
&& chmod -R 0775 out \
|
2022-10-14 21:13:12 -07:00
|
|
|
&& podman run -v="$(readlink -f .)":/stargazing -e=TERM=$TERM -it --rm \
|
|
|
|
--security-opt label=disable --user podman quay.io/podman/stable \
|
|
|
|
/stargazing/build-all \
|
2022-10-14 21:39:36 -07:00
|
|
|
|| echo something died \
|
2022-10-14 21:13:12 -07:00
|
|
|
;
|