From d58f4c764e2ea871c72a4352b85a06a2a0310312 Mon Sep 17 00:00:00 2001 From: Jonathan Boulle Date: Fri, 16 Sep 2016 15:23:53 +0200 Subject: [PATCH] layer: clarify that layers are gzipped Signed-off-by: Jonathan Boulle --- layer.md | 3 ++- media-types.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/layer.md b/layer.md index 6e771cc84..1710de411 100644 --- a/layer.md +++ b/layer.md @@ -6,7 +6,7 @@ This document will use a concrete example to illustrate how to create and consum ## Distributable Format -Layer Changesets for the [mediatype](./media-types.md) `application/vnd.oci.image.layer.tar+gzip` MUST be packaged in [tar archive][tar-archive]. +Layer Changesets for the [mediatype](./media-types.md) `application/vnd.oci.image.layer.tar+gzip` MUST be packaged in a [tar archive][tar-archive] compressed with [gzip][gzip]. Layer Changesets for the [mediatype](./media-types.md) `application/vnd.oci.image.layer.tar+gzip` MUST NOT include duplicate entries for file paths in the resulting [tar archive][tar-archive]. ## Change Types @@ -280,3 +280,4 @@ Layers that have these restrictions SHOULD be tagged with an alternative mediaty It is implementation-defined whether or not implementations upload layers tagged with this media type. [tar-archive]: https://en.wikipedia.org/wiki/Tar_(computing) +[gzip]: http://www.zlib.org/rfc-gzip.html diff --git a/media-types.md b/media-types.md index 041a209a2..1eb172dfa 100644 --- a/media-types.md +++ b/media-types.md @@ -7,7 +7,7 @@ The following media types identify the formats described here and their referenc - `application/vnd.oci.image.manifest.v1+json`: [Image manifest format](manifest.md#image-manifest) - `application/vnd.oci.image.config.v1+json`: [Container config JSON](config.md) - `application/vnd.oci.image.layer.tar+gzip`: ["Layer", as a gzipped tar archive](layer.md) -- `application/vnd.oci.image.layer.nondistributable.tar+gzip`: ["Layer", as a gzipped tar that has distribution restrictions](layer.md#non-distributable-layers) +- `application/vnd.oci.image.layer.nondistributable.tar+gzip`: ["Layer", as a gzipped tar archive with distribution restrictions](layer.md#non-distributable-layers) ## Compatibility Matrix