Skip to content

Commit

Permalink
oci: add support for zstd compression (PROJQUAY-1417) (#801)
Browse files Browse the repository at this point in the history
allow upload of layers compressed with zstd, instead of gzip.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
  • Loading branch information
giuseppe committed Aug 3, 2021
1 parent 3dde364 commit 1994f2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions image/oci/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

OCI_IMAGE_TAR_LAYER_CONTENT_TYPE = "application/vnd.oci.image.layer.v1.tar"
OCI_IMAGE_TAR_GZIP_LAYER_CONTENT_TYPE = "application/vnd.oci.image.layer.v1.tar+gzip"
OCI_IMAGE_TAR_ZSTD_LAYER_CONTENT_TYPE = "application/vnd.oci.image.layer.v1.tar+zstd"

OCI_IMAGE_DISTRIBUTABLE_LAYER_CONTENT_TYPES = [
OCI_IMAGE_TAR_LAYER_CONTENT_TYPE,
OCI_IMAGE_TAR_GZIP_LAYER_CONTENT_TYPE,
OCI_IMAGE_TAR_ZSTD_LAYER_CONTENT_TYPE,
]

OCI_IMAGE_TAR_NON_DISTRIBUTABLE_LAYER_CONTENT_TYPE = (
Expand Down

0 comments on commit 1994f2d

Please sign in to comment.