-
Notifications
You must be signed in to change notification settings - Fork 611
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
Add zstd compress level support #1496
Conversation
c455739
to
8dbfdf3
Compare
8dbfdf3
to
4e51c39
Compare
@@ -66,6 +67,10 @@ func newImageConvertCommand() *cobra.Command { | |||
imageConvertCommand.Flags().Int("estargz-compression-level", gzip.BestCompression, "eStargz compression level") | |||
imageConvertCommand.Flags().Int("estargz-chunk-size", 0, "eStargz chunk size") | |||
imageConvertCommand.Flags().Bool("zstdchunked", false, "Use zstd compression instead of gzip (a.k.a zstd:chunked). Should be used in conjunction with '--oci'") | |||
imageConvertCommand.Flags().String("zstdchunked-record-in", "", "Read 'ctr-remote optimize --record-out=<FILE>' record file (EXPERIMENTAL)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Record-in should be experimental https://github.com/containerd/nerdctl/blob/main/docs/experimental.md
The commit message doesn’t seem to reflect the actual content of the commit |
Signed-off-by: Jin Dong <jindon@amazon.com>
4e51c39
to
b0434b5
Compare
@AkihiroSuda Thanks for review. Updated the doc to mention zstdchunked-record-in as experimental and the commit message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
Fix #1367
This PR in
stargz
adds support for customizing zstd compression level inctr-remote
. This PR does a similar thing to add the support in nerdctl.I tested the change locally using the
stargz
main branch. After the new version ofstargz
is released (with the change in that PR), it should work.Signed-off-by: Jin Dong jindon@amazon.com