Skip to content
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

Push zstd::chunked compressed container images to another tag #128

Open
travier opened this issue Jun 7, 2024 · 4 comments
Open

Push zstd::chunked compressed container images to another tag #128

travier opened this issue Jun 7, 2024 · 4 comments
Labels
enhancement Improvement to existing images

Comments

@travier
Copy link
Member

travier commented Jun 7, 2024

Using a better compression algorithm will mean smaller container images in the registry and faster pulls.

As the spec does not support multiple compression algorithms for a single tag, we should push those images to another tag.

See:

@travier travier added the enhancement Improvement to existing images label Jun 7, 2024
@travier
Copy link
Member Author

travier commented Jul 10, 2024

According to https://fedoraproject.org/wiki/Changes/zstd:chunked, container engine mostly support this format now.

But that would require some testing to not break older systems. So the push 2 times route is probably the safest in the short term. It should be reasonably easy to do.

@travier
Copy link
Member Author

travier commented Jul 11, 2024

Apparently it's possible to push both formats using a manifest list: https://discussion.fedoraproject.org/t/switch-fedora-container-images-to-support-zstd-chunked-format-by-default/123712/8

I will give this a try.

@sanmai-NL
Copy link

@travier Good work! What's your current status?

@travier
Copy link
Member Author

travier commented Nov 25, 2024

It's stuck on #129 (review). We need to either implement this support in https://github.com/redhat-actions/push-to-registry or switch to using https://github.com/ublue-os/push-to-registry/tree/scaffold-repository in the meanwhile. I would prefer the first option, even if it's from a fork and not merged for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to existing images
Development

No branches or pull requests

2 participants