feat(build): raise BuildKit cache-mount budget for remote builders #112
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/buildkit-cache-mount-budget"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
BuildKit's default GC caps the ephemeral cache tier —
RUN --mount=type=cachemounts, local build context, git checkouts — at a hardcoded 512 MB (shown as488.3 MiBinbuildx inspect).Across our 7-distro build matrix that fills instantly and forces re-downloads of system + R packages on every rebuild.
Changes
docker/buildkitd.toml(new) — GC config passed via--configwhen creating thedocker-containerbuildersartemis(amd64) andgaia(arm64):justfile— document the--config docker/buildkitd.tomlflag on the builder-create commands so a recreate does not silently revert to the 512 MB default.Notes
%) because the two hosts differ ~6× in free space (Hetzner ~42 GiB free vs Mac mini ~279 GiB). The 20 GB min-free is the safety valve on the disk-tight Hetzner host; the old default wanted 64 GiB free, which does not exist there.