samhclark / custom-silverblue

Following Jorge Castro's lead and making my own spin on Silverblue
0 stars 1 forks source link

Use zstd:chunked when pushing images #2

Open samhclark opened 2 months ago

samhclark commented 2 months ago

When publishing the images, Buildah can compress the image with zstd:chunked. Eventually, with support from bootc, this could make pulling updates a lil faster.

I ran into problems when pushing zstd:chunked images to a tag that had already been published. Not sure if that's a thing where it's hard to convert them, but I didn't mess around with it much.

The commit that reverted zstd:chunked is here https://github.com/samhclark/custom-silverblue/commit/017dbc5077e4cdc211cc5d717e91f06010408832

samhclark commented 1 month ago

Got a working branch on try-zstd-chunked-again (most recent commit 800cf2d9c171d632318345ea4f24ef317ca62898). The downside is that rpm-ostree upgrade is horribly slow after this. 4 minutes, 58 seconds. (Compared to 1min,52sec gzip)

There are some existing GitHub issues about that, so maybe hold up on doing this here until that gets worked out, or it becomes the default.

There's a work tracker here https://github.com/containers/image/issues/2189