Skip to content

Commit 8b56619

Browse files
authored
Merge pull request #137 from runcom/regexp-ref
image-layout.md: fixes
2 parents d6093c8 + 346ca18 commit 8b56619

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

image-layout.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Given an image layout a tool can convert a given ref into a runnable OCI Image F
77
The image layout has two top level directories:
88

99
- "blobs" contains content-addressable blobs. A blob has no schema and should be considered opaque.
10-
- "refs" contains descriptors pointing to an image manifest list
10+
- "refs" contains descriptors pointing to an image manifest
1111

1212
It also contains a file that is used to identify the layout version:
1313

@@ -20,6 +20,7 @@ $ cd example.com/app/
2020
$ find .
2121
.
2222
./blobs
23+
./blobs/sha256-e692418e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f
2324
./blobs/sha256-afff3924849e458c5ef237db5f89539274d5e609db5db935ed3959c90f1f2d51
2425
./blobs/sha256-5b0bcabd1ed22e9fb1310cf6c2dec7cdef19f0ad69efa1f392e94a4333501270
2526
./blobs/sha256-e692418e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f
@@ -36,7 +37,7 @@ $ shasum -a 256 ./blobs/sha256-afff3924849e458c5ef237db5f89539274d5e609db5db935e
3637
afff3924849e458c5ef237db5f89539274d5e609db5db935ed3959c90f1f2d51 ./blobs/sha256-afff3924849e458c5ef237db5f89539274d5e609db5db935ed3959c90f1f2d51
3738
```
3839

39-
Object names in the `refs` and `blobs` MUST NOT include characters outside of the set of "A" to "Z", "a" to "z", the hyphen `-`, the dot `.`, and the underscore `_`.
40+
Object names in the `refs` and `blobs` subdirectories MUST NOT include characters outside of the set of "A" to "Z", "a" to "z", "0" to "9", the hyphen `-`, the dot `.`, and the underscore `_`.
4041
Hash algorithm identifiers containing the colon `:` will be converted to the hyphen `-`.
4142
For example `sha256:5b` will map to the layout `blobs/sha256-5b`.
4243
The blobs directory MAY contain blobs which are not referenced by any of the refs.
@@ -50,7 +51,24 @@ This illustrates the expected contents of a given ref, the manifest list it poin
5051

5152
```
5253
$ cat ./refs/v1.0
53-
{"size": 4096, "digest": "sha256:afff3924849e458c5ef237db5f89539274d5e609db5db935ed3959c90f1f2d51", "mediatype": "application/vnd.oci.image.manifest.v1+json"}
54+
{"size": 4096, "digest": "sha256:e692418e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f", "mediatype": "application/vnd.oci.image.manifest.list.v1+json"}
55+
```
56+
```
57+
$ cat ./blobs/sha256-e692418e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f
58+
{
59+
"schemaVersion": 2,
60+
"mediaType": "application/vnd.oci.image.manifest.list.v1+json",
61+
"manifests": [
62+
{
63+
"mediaType": "application/vnd.oci.image.manifest.v1+json",
64+
"size": 7143,
65+
"digest": "sha256:afff3924849e458c5ef237db5f89539274d5e609db5db935ed3959c90f1f2d51",
66+
"platform": {
67+
"architecture": "ppc64le",
68+
"os": "linux"
69+
}
70+
},
71+
...
5472
```
5573
```
5674
$ cat ./blobs/sha256-afff3924849e458c5ef237db5f89539274d5e609db5db935ed3959c90f1f2d51

0 commit comments

Comments
 (0)