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

copy: add --dest-compress-format and --dest-compress-level #671

Merged
merged 2 commits into from
Sep 3, 2019

Conversation

giuseppe
Copy link
Member

add the possibility to specify the format and the level to use when
compressing blobs.

Signed-off-by: Giuseppe Scrivano [email protected]

Copy link
Contributor

@mtrmac mtrmac left a 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.

vendor.conf Outdated Show resolved Hide resolved
docs/skopeo-copy.1.md Outdated Show resolved Hide resolved
@giuseppe
Copy link
Member Author

rebased

@giuseppe giuseppe changed the title [WIP] copy: add --dest-compress-format and --dest-compress-level copy: add --dest-compress-format and --dest-compress-level Aug 21, 2019
Copy link
Member

@vrothberg vrothberg left a 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?

@giuseppe
Copy link
Member Author

@giuseppe, can we add some tests on top?

I've added a test to verify the compressed layer is a .zstd file

cmd/skopeo/utils.go Outdated Show resolved Hide resolved
cmd/skopeo/flag.go Outdated Show resolved Hide resolved
cmd/skopeo/utils.go Outdated Show resolved Hide resolved
cmd/skopeo/utils.go Outdated Show resolved Hide resolved
cmd/skopeo/utils_test.go Outdated Show resolved Hide resolved
docs/skopeo-copy.1.md Outdated Show resolved Hide resolved
cmd/skopeo/flag.go Outdated Show resolved Hide resolved
cmd/skopeo/flag.go Outdated Show resolved Hide resolved
cmd/skopeo/flag.go Outdated Show resolved Hide resolved
@giuseppe
Copy link
Member Author

@mtrmac does it look fine now?

Signed-off-by: Giuseppe Scrivano <[email protected]>
@giuseppe
Copy link
Member Author

giuseppe commented Sep 2, 2019

can this be reviewed?

docs/skopeo-copy.1.md Outdated Show resolved Hide resolved
Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor last nit.

LGTM, @rhatdan @mtrmac PTAL

@@ -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.
Copy link
Member

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]>
@rhatdan
Copy link
Member

rhatdan commented Sep 3, 2019

LGTM

@rhatdan rhatdan merged commit 18f0e1e into containers:master Sep 3, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants