Skip to content

exporter: support for compression-level#2591

Merged
tonistiigi merged 1 commit intomoby:masterfrom
tonistiigi:compression-level-2
Feb 3, 2022
Merged

exporter: support for compression-level#2591
tonistiigi merged 1 commit intomoby:masterfrom
tonistiigi:compression-level-2

Conversation

@tonistiigi
Copy link
Copy Markdown
Member

replaces #2350

compression-level option can be set on export to
define the preferred speed vs compression ratio. The
value is a number dependent on the compression algorithm.

@ktock

Signed-off-by: Tonis Tiigi tonistiigi@gmail.com

@tonistiigi tonistiigi added this to the v0.10.0 milestone Feb 1, 2022
@tonistiigi tonistiigi requested a review from ktock February 1, 2022 06:17
Comment thread cache/estargz.go Outdated
Comment thread README.md
* `dangling-name-prefix=[value]`: name image with `prefix@<digest>` , used for anonymous images
* `name-canonical=true`: add additional canonical name `name@<digest>`
* `compression=[uncompressed,gzip,estargz,zstd]`: choose compression type for layers newly created and cached, gzip is default value. estargz should be used with `oci-mediatypes=true`.
* `compression-level=[value]`: compression level for gzip, estargz (0-9) and zstd (0-22)
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.

Could you add the default value?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

There is no universal default value. -1 is the default in gzip.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Actually, I see I made -1 match default inzstd as well(although non-spec). But estagz might still want a different default #2591 (comment)

compression-level option can be set on export to
define the preferred speed vs compression ratio. The
value is a number dependent on the compression algorithm.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants