common: Persist binary packages between runs

lib/main
Dustin 2024-12-06 16:18:44 -06:00
parent 15fbb180d0
commit c13a44c6bf
1 changed files with 2 additions and 0 deletions

View File

@ -6,9 +6,11 @@ buildah_run_script() {
shift
script=$(readlink -f "$1")
shift
mkdir -p binpkgs
buildah run \
--mount type=cache,target=/var/db/repos/gentoo \
--mount type=cache,target=/var/cache \
--mount type=bind,src="${PWD}"/binpkgs,target=/var/cache/binpkgs,rw,z \
--mount type=bind,src="${script}",target=/run/script,ro,z \
--tty=false \
-e FEATURES='-ipc-sandbox -network-sandbox -pid-sandbox' \