-
Notifications
You must be signed in to change notification settings - Fork 117
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
Document eStargz with zstd
compression instead of only gzip
#1596
Comments
SGTM
Yes
Please see also source code : stargz-snapshotter/estargz/zstdchunked/zstdchunked.go Lines 186 to 201 in 6e5d5a0
Or discussion threads: containers/storage#775 #293 |
Perfect, thanks! Once I have a clear idea of how this all works I might open a PR to update the docs 👍 |
I'm not yet confident enough in my knowledge to update the docs, but here's some relevant information for whoever is interested in creating an independent implementation of eStargz + zstd:
|
Update: my comment above is incorrect. For all files (including the landmark), the offset indeed links directly to the start of the compressed body, which is obvious because any non-empty body gets its own zstd frame. Sorry for the confusion. |
Currently, the docs on the structure of eStargz mention that layers are compressed using
gzip
. However, as far as I understand, eStargz also supportszstd
as a compression mechanism (it is mentioned in the nerdctl docs, though they call itzstdchunked
).It would be great to update the docs to reflect
zstd
support. Specifically, the following questions need to be answered when usingzstd
as the compression format:gzip
blobs replaced byzstd
frames (as defined in the zstd specification)? Are chunks alsozstd
frames?gzip
and it's not clear to me how it translates tozstd
.For context, I'm working on an image bakery application in Rust and I want to support eStargz with
zstd
compression.The text was updated successfully, but these errors were encountered: