-
Notifications
You must be signed in to change notification settings - Fork 780
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
copy: add --dest-compress-format and --dest-compress-level #671
Conversation
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.
ACK overall, primarily depending on the design decisions in c/image.
4fffa42
to
d518171
Compare
5b5b4ab
to
855608d
Compare
e9be01d
to
32915d0
Compare
rebased |
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.
@giuseppe, can we add some tests on top?
5d17f85
to
8956b88
Compare
I've added a test to verify the compressed layer is a .zstd file |
fe54879
to
638dba1
Compare
@mtrmac does it look fine now? |
Signed-off-by: Giuseppe Scrivano <[email protected]>
can this be reviewed? |
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.
docs/skopeo-copy.1.md
Outdated
@@ -58,6 +58,10 @@ If the authorization state is not found there, $HOME/.docker/config.json is chec | |||
|
|||
Existing signatures, if any, are preserved as well. | |||
|
|||
**--dest-compress-format** _format_ Specifies the compression format to use. Supported values are: `gzip` and `zstd`. | |||
|
|||
**--dest-compress-level** _format_ Specifies the compression level to use. The value is specific to the compression algorithm used, e.g. for zstd the accepted values are in the range 1-20 (inclusive), while for gzip it is 1-9 (inclusive). Algorithms that don't support the setting, will ignore it. |
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.
The last sentence is now redundant since we only support gzip and zstd.
add the possibility to specify the format and the level to use when compressing blobs. Signed-off-by: Giuseppe Scrivano <[email protected]>
LGTM |
add the possibility to specify the format and the level to use when
compressing blobs.
Signed-off-by: Giuseppe Scrivano [email protected]