Skip to content

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

Merged
rhatdan merged 2 commits intocontainers:masterfrom
giuseppe:zstd
Sep 3, 2019
Merged

copy: add --dest-compress-format and --dest-compress-level#671
rhatdan merged 2 commits intocontainers:masterfrom
giuseppe:zstd

Conversation

@giuseppe
Copy link
Copy Markdown
Member

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

Signed-off-by: Giuseppe Scrivano gscrivan@redhat.com

Copy link
Copy Markdown
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.

@giuseppe
Copy link
Copy Markdown
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
Copy Markdown
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 giuseppe force-pushed the zstd branch 2 times, most recently from 5d17f85 to 8956b88 Compare August 21, 2019 12:29
@giuseppe
Copy link
Copy Markdown
Member Author

@giuseppe, can we add some tests on top?

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

@giuseppe giuseppe force-pushed the zstd branch 2 times, most recently from fe54879 to 638dba1 Compare August 21, 2019 17:50
@giuseppe
Copy link
Copy Markdown
Member Author

@mtrmac does it look fine now?

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@giuseppe
Copy link
Copy Markdown
Member Author

giuseppe commented Sep 2, 2019

can this be reviewed?

Copy link
Copy Markdown
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


**--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
Copy Markdown
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 <gscrivan@redhat.com>
@rhatdan
Copy link
Copy Markdown
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