Skip to content

Commit

Permalink
layer: clarify that layers are gzipped
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Boulle <jonathanboulle@gmail.com>
  • Loading branch information
jonboulle committed Sep 16, 2016
1 parent 287772a commit d58f4c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion media-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d58f4c7

Please sign in to comment.