From 9e30b4871c28d1490e50e8d90233035b343efced Mon Sep 17 00:00:00 2001 From: Allison Karlitskaya Date: Wed, 4 Dec 2024 11:32:46 +0100 Subject: [PATCH] examples: step up our caching game This is the way it should have been done from the start, but I didn't know about it at the time. Also, add a bug reference for an unrelated workaround. Signed-off-by: Allison Karlitskaya --- examples/bls/Containerfile | 2 +- examples/bls/build | 5 +---- examples/uki/Containerfile | 4 ++-- examples/uki/build | 5 +---- 4 files changed, 5 insertions(+), 11 deletions(-) diff --git a/examples/bls/Containerfile b/examples/bls/Containerfile index 948ae38..545c797 100644 --- a/examples/bls/Containerfile +++ b/examples/bls/Containerfile @@ -2,7 +2,7 @@ FROM fedora:rawhide COPY extra / COPY cfsctl /usr/bin -RUN < /etc/kernel/cmdline diff --git a/examples/uki/build b/examples/uki/build index 6af1a5c..6d40e16 100755 --- a/examples/uki/build +++ b/examples/uki/build @@ -4,12 +4,9 @@ set -eux cd "${0%/*}" +# https://github.com/containers/buildah/issues/5656 PODMAN_BUILD="podman build --no-cache" -if [ -d ~/.cache/container-build-cache ]; then - PODMAN_BUILD="${PODMAN_BUILD} --security-opt=label=disable --volume=${HOME}/.cache/container-build-cache:/var/cache:U" -fi - cargo build --release cp ../../target/release/cfsctl .