Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distribution manifest #1

Open
wants to merge 12 commits into
base: universal
Choose a base branch
from
29 changes: 29 additions & 0 deletions manifest-examples/image-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"schemaVersion": 2,
"config": {
"mediaType": "application/vnd.oci.image.config.v1+json",
"size": 7023,
"digest": "sha256:b5b2b2c507a0944348e0303114d8d93aaaa081732b86451d9bce1f432a537bc7"
},
"layers": [
{
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 32654,
"digest": "sha256:9834876dcfb05cb167a5c24953eba58c4ac89b1adf57f28f2f9d09af107ee8f0"
},
{
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 16724,
"digest": "sha256:3c3a4604a545cdc127456d94e421cd355bca5b528f4a9c1905b15da2eb4a4c6b"
},
{
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 73109,
"digest": "sha256:ec4b8955958665577945c89419d1af06b5f7636b4ac3da7f12184802ad867736"
}
],
"annotations": {
"com.example.key1": "value1",
"com.example.key2": "value2"
}
}
82 changes: 82 additions & 0 deletions manifest-examples/image-multi-version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"schemaVersion": "3",
"mediaType": "application/vnd.oci.artifact.manifest.v1+json",
"objects": [
{
"artifactType": "application/vnd.oci.image",
"version": "2",
"components": [
{
"type": "blob",
"mediaType": "application/vnd.oci.config",
"version": "2",
"descriptor": {
"mediaType": "application/vnd.oci.image.config.v1+json",
"size": 7023,
"digest": "sha256:b5b2b2c507a0944348e0303114d8d93aaaa081732b86451d9bce1f432a537bc7"
}
},
{
"type": "blob",
"mediaType": "application/vnd.oci.layer",
"version": "2",
"descriptor": {
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 32654,
"digest": "sha256:9834876dcfb05cb167a5c24953eba58c4ac89b1adf57f28f2f9d09af107ee8f0"
}
},
{
"type": "blob",
"mediaType": "application/vnd.oci.layer",
"version": "2",
"descriptor": {
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 16724,
"digest": "sha256:3c3a4604a545cdc127456d94e421cd355bca5b528f4a9c1905b15da2eb4a4c6b"
}
},
{
"type": "blob",
"mediaType": "application/vnd.oci.layer",
"version": "2",
"descriptor": {
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 73109,
"digest": "sha256:ec4b8955958665577945c89419d1af06b5f7636b4ac3da7f12184802ad867736"
}
},
{
"type": "blob",
"mediaType": "application/vnd.oci.layer.encrypted",
"version": "2",
"descriptor": {
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip+encrypted",
Copy link
Author

Choose a reason for hiding this comment

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

Is +encrypted going to get bikesheded as an example? Should we use a different example of different layers?

"size": 32655,
"digest": "sha256:0934876dcfb05cb167a5c24953eba58c4ac89b1adf57f28f2f9d09af107ee8fa"
}
},
{
"type": "blob",
"mediaType": "application/vnd.oci.layer.encrypted",
"version": "2",
"descriptor": {
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip+encrypted",
"size": 16725,
"digest": "sha256:4c3a4604a545cdc127456d94e421cd355bca5b528f4a9c1905b15da2eb4a4c6c"
}
},
{
"type": "blob",
"mediaType": "application/vnd.oci.layer.encrypted",
"version": "2",
"descriptor": {
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip+encrypted",
"size": 73110,
"digest": "sha256:fc4b8955958665577945c89419d1af06b5f7636b4ac3da7f12184802ad867738"
}
}
]
}
]
}
106 changes: 106 additions & 0 deletions manifest-examples/image-multiarch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"schemaVersion": "3",
"mediaType": "application/vnd.oci.artifact.manifest.v1+json",
"objects": [
{
"artifactType": "application/vnd.oci.image",
"version": "2",
"filters": {
"org.oci.os": "linux",
"org.oci.architecture": "amd64"
},
"components": [
{
"type": "blob",
"mediaType": "application/vnd.oci.config",
"version": "2",
"descriptor": {
"mediaType": "application/vnd.oci.image.config.v1+json",
"size": 7023,
"digest": "sha256:b5b2b2c507a0944348e0303114d8d93aaaa081732b86451d9bce1f432a537bc7"
}
},
{
"type": "blob",
"mediaType": "application/vnd.oci.layer",
"version": "2",
"descriptor": {
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 32654,
"digest": "sha256:9834876dcfb05cb167a5c24953eba58c4ac89b1adf57f28f2f9d09af107ee8f0"
}
},
{
"type": "blob",
"mediaType": "application/vnd.oci.layer",
"version": "2",
"descriptor": {
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 16724,
"digest": "sha256:3c3a4604a545cdc127456d94e421cd355bca5b528f4a9c1905b15da2eb4a4c6b"
}
},
{
"type": "blob",
"mediaType": "application/vnd.oci.layer",
"version": "2",
"descriptor": {
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 73109,
"digest": "sha256:ec4b8955958665577945c89419d1af06b5f7636b4ac3da7f12184802ad867736"
}
}
]
},
{
"artifactType": "application/vnd.oci.image",
"version": "2",
"filters": {
"org.oci.os": "linux",
"org.oci.architecture": "ppc64"
},
"components": [
{
"type": "blob",
"mediaType": "application/vnd.oci.config",
"version": "2",
"descriptor": {
"mediaType": "application/vnd.oci.image.config.v1+json",
"size": 7023,
"digest": "sha256:b5b2b2c507a0944348e0303114d8d93aaaa081732b86451d9bce1f432a537bc7"
}
},
{
"type": "blob",
"mediaType": "application/vnd.oci.layer",
"version": "2",
"descriptor": {
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 32654,
"digest": "sha256:9834876dcfb05cb167a5c24953eba58c4ac89b1adf57f28f2f9d09af107ee8f0"
}
},
{
"type": "blob",
"mediaType": "application/vnd.oci.layer",
"version": "2",
"descriptor": {
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 16724,
"digest": "sha256:3c3a4604a545cdc127456d94e421cd355bca5b528f4a9c1905b15da2eb4a4c6b"
}
},
{
"type": "blob",
"mediaType": "application/vnd.oci.layer",
"version": "2",
"descriptor": {
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 73109,
"digest": "sha256:ec4b8955958665577945c89419d1af06b5f7636b4ac3da7f12184802ad867736"
}
}
]
}
]
}
72 changes: 72 additions & 0 deletions manifest-examples/image-with-sbom.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"schemaVersion": "3",
"mediaType": "application/vnd.oci.artifact.manifest.v1+json",
"objects": [
{
"artifactType": "application/vnd.oci.image",
"version": "2",
"components": [
{
"type": "blob",
"mediaType": "application/vnd.oci.config",
"version": "2",
"descriptor": {
"mediaType": "application/vnd.oci.image.config.v1+json",
"size": 7023,
"digest": "sha256:b5b2b2c507a0944348e0303114d8d93aaaa081732b86451d9bce1f432a537bc7"
}
},
{
"type": "blob",
"mediaType": "application/vnd.oci.layer",
"version": "2",
"descriptor": {
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 32654,
"digest": "sha256:9834876dcfb05cb167a5c24953eba58c4ac89b1adf57f28f2f9d09af107ee8f0"
}
},
{
"type": "blob",
"mediaType": "application/vnd.oci.layer",
"version": "2",
"descriptor": {
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 16724,
"digest": "sha256:3c3a4604a545cdc127456d94e421cd355bca5b528f4a9c1905b15da2eb4a4c6b"
}
},
{
"type": "blob",
"mediaType": "application/vnd.oci.layer",
"version": "2",
"descriptor": {
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 73109,
"digest": "sha256:ec4b8955958665577945c89419d1af06b5f7636b4ac3da7f12184802ad867736"
}
}
]
},
{
"artifactType": "application/x.example.sbom",
"version": "1",
"components": [
{
"type": "blob",
"mediaType": "application/x.example.sbom.document",
"version": "1",
"descriptor": {
"mediaType": "application/tar+gzip",
"size": 7023,
"digest": "sha256:b5b2b2c507a0944348e0303114d8d93aaaa081732b86451d9bce1f432a537bc7"
}
}
]
}
],
"annotations": {
"com.example.key1": "value1",
"com.example.key2": "value2"
}
}
48 changes: 48 additions & 0 deletions manifest-examples/image.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"schemaVersion": "3",
"mediaType": "application/vnd.oci.artifact.manifest.v1+json",
"objects": [
{
"artifactType": "application/vnd.oci.image",
"version": "2",
"components": [
{
"type": "blob",
"mediaType": "application/vnd.oci.config",
"descriptor": {
"mediaType": "application/vnd.oci.image.config.v1+json",
"size": 7023,
"digest": "sha256:b5b2b2c507a0944348e0303114d8d93aaaa081732b86451d9bce1f432a537bc7"
}
},
{
"type": "blob",
"mediaType": "application/vnd.oci.layer",
"descriptor": {
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 32654,
"digest": "sha256:9834876dcfb05cb167a5c24953eba58c4ac89b1adf57f28f2f9d09af107ee8f0"
}
},
{
"type": "blob",
"mediaType": "application/vnd.oci.layer",
"descriptor": {
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 16724,
"digest": "sha256:3c3a4604a545cdc127456d94e421cd355bca5b528f4a9c1905b15da2eb4a4c6b"
}
},
{
"type": "blob",
"mediaType": "application/vnd.oci.layer",
"descriptor": {
"mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
"size": 73109,
"digest": "sha256:ec4b8955958665577945c89419d1af06b5f7636b4ac3da7f12184802ad867736"
}
}
]
}
]
}
28 changes: 28 additions & 0 deletions manifest-examples/sbom.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"schemaVersion": "3",
"mediaType": "application/vnd.oci.artifact.manifest.v1+json",
"objects": [
{
"artifactType": "application/x.example.sbom",
"version": "1",
"components": [
{
"type": "blob",
"descriptor": {
"mediaType": "application/tar+gzip",
"size": 7023,
"digest": "sha256:b5b2b2c507a0944348e0303114d8d93aaaa081732b86451d9bce1f432a537bc7"
}
},
{
"type": "manifest",
"descriptor": {
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"size": 7682,
"digest": "sha256:5b0bcabd1ed22e9fb1310cf6c2dec7cdef19f0ad69efa1f392e94a4333501270"
}
}
]
}
]
}
Loading