From c13a44c6bf3f0324f769949173e077f516f1e25b Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Fri, 6 Dec 2024 16:18:44 -0600 Subject: [PATCH] common: Persist binary packages between runs --- lib/common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/common.sh b/lib/common.sh index 69a1666..f4acc2b 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -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' \