Are you also using cache mounts for rpm-

Are you also using cache mounts for rpm-ostree?
7 Replies
Luke Skywunker
Luke Skywunker5mo ago
Yes, it's really nice when working on an image locally and making use of the GitHub Action Cache
Luke Skywunker
Luke Skywunker5mo ago
Here's a generated Containerfile from BlueBuild
Luke Skywunker
Luke Skywunker5mo ago
It's too big for discord to display it lol Here's a snippet of one of the RUN instructions
RUN \
--mount=type=bind,from=stage-config,src=/config,dst=/tmp/config,rw \
--mount=type=bind,from=stage-modules,src=/modules,dst=/tmp/modules,rw \
--mount=type=bind,from=ghcr.io/blue-build/cli:26f31ed1ea1b6f5c0bcf8954722f442e99099512-build-scripts,src=/scripts/,dst=/tmp/scripts/ \
--mount=type=cache,dst=/var/cache/rpm-ostree,id=rpm-ostree-cache-jp-desktop-nvidia-40,sharing=locked \
/tmp/scripts/run_module.sh 'rpm-ostree' '{"type":"rpm-ostree","repos":["https://pkgs.tailscale.com/stable/fedora/tailscale.repo"],"install":["libadwaita","cronie","neofetch","plasma-browser-integration","id3v2","xinput","ripgrep","tailscale","strawberry","xclip","bat"]}' \
&& ostree container commit
RUN \
--mount=type=bind,from=stage-config,src=/config,dst=/tmp/config,rw \
--mount=type=bind,from=stage-modules,src=/modules,dst=/tmp/modules,rw \
--mount=type=bind,from=ghcr.io/blue-build/cli:26f31ed1ea1b6f5c0bcf8954722f442e99099512-build-scripts,src=/scripts/,dst=/tmp/scripts/ \
--mount=type=cache,dst=/var/cache/rpm-ostree,id=rpm-ostree-cache-jp-desktop-nvidia-40,sharing=locked \
/tmp/scripts/run_module.sh 'rpm-ostree' '{"type":"rpm-ostree","repos":["https://pkgs.tailscale.com/stable/fedora/tailscale.repo"],"install":["libadwaita","cronie","neofetch","plasma-browser-integration","id3v2","xinput","ripgrep","tailscale","strawberry","xclip","bat"]}' \
&& ostree container commit
M2
M2OP5mo ago
For our multistage builds, using the cache mount might be helpful
Luke Skywunker
Luke Skywunker5mo ago
I would be careful sharing that cache between different Fedora versions (40 and 39), but other than that it's really useful
M2
M2OP5mo ago
Was thinking for only multistage builds right now and making things faster on local iterations
Luke Skywunker
Luke Skywunker5mo ago
For sure worth it
Want results from more Discord servers?
Add your server