Skip to content

cache compression algorithm #6072

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nicolaerosiaradcom opened this issue Mar 19, 2025 · 3 comments
Open

cache compression algorithm #6072

nicolaerosiaradcom opened this issue Mar 19, 2025 · 3 comments

Comments

@nicolaerosiaradcom
Copy link

Is there a way to specify how to compress the cached layers when doing buildah build, of course with --layers ?

It seems like the cache has MIMEType application/vnd.oci.image.layer.v1.tar+gzip

@flouthoc
Copy link
Collaborator

Can i understand what are you trying to do ? --layers are intermediate images which are stored on local host.

@nicolaerosiaradcom
Copy link
Author

@flouthoc

I'm building the images in a CI and I would like to speed up things by using zstd cache.
Cache gets created and reused just fine, however it seems to be compressed using gzip, even if I have something like this which causes the final images to be pushed (buildah push) with the right compression format.

tee "/etc/containers/containers.conf.d/myconf.conf" << EOF
[engine]
compression_format="zstd:chunked"
compression_level=3
EOF
buildah build \
  --timestamp=1742216986 \
  --cache-from ${NEXUS_REGISTRY}/cache \
  --cache-to ${NEXUS_REGISTRY}/cache \
  --cache-ttl=240h \
  --layers=true \
  --disable-compression=true \
[...]

Copy link

A friendly reminder that this issue had no activity for 30 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants