From 359c4c04a96d169bd523236b550f2e4db064c16d Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Tue, 29 Jul 2025 17:05:15 -0400 Subject: [PATCH] Containerfile: use cache again We dropped the cache line in df45d53 because it wasn't being used and also turned out to require some upstream changes [1] to be useful. Now that rpm-ostree-2025.9 has been released let's default to using caching again, which will help improve the local developer workflow by allowing for iterating on builds and not having to re-download RPMs each cycle. [1] https://github.com/coreos/rpm-ostree/pull/5391 --- Containerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Containerfile b/Containerfile index 9c77144..1baebfa 100644 --- a/Containerfile +++ b/Containerfile @@ -28,7 +28,8 @@ ARG MANIFEST=fedora-standard COPY . /src WORKDIR /src RUN rm -vf /src/*.repo -RUN --mount=type=bind,rw,from=repos,src=/,dst=/repos </dev/null # Run the build script in the same way we expect custom images to do, and also # "re-inject" the manifests into the target, so secondary container builds can use it. -/usr/libexec/bootc-base-imagectl build-rootfs --reinject --manifest=${MANIFEST} /repos /target-rootfs +/usr/libexec/bootc-base-imagectl build-rootfs \ + --cachedir=/cache --reinject --manifest=${MANIFEST} /repos /target-rootfs EORUN # This pulls in the rootfs generated in the previous step