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

Metadata descriptors #5454

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LaurentGoderre
Copy link
Contributor

@LaurentGoderre LaurentGoderre commented Oct 25, 2024

This PR allows outputting all the descriptors in the metadata file. This is how it would look:

"containerimage.descriptors": [
    {
      "mediaType": "application/vnd.oci.image.index.v1+json",
      "digest": "sha256:09ebf864af696306655197662bac5fc5d249e273223bf0c02df053c5b969e723",
      "size": 1607,
      "annotations": {
        "org.opencontainers.image.created": "2024-10-28T13:41:56Z"
      }
    },
    {
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "digest": "sha256:465f515dfba9a241c3af16b4154e4161db1e8de1055b753434874158e7ae05d9",
      "size": 480,
      "platform": {
        "architecture": "amd64",
        "os": "linux"
      }
    },
    {
      "mediaType": "application/vnd.oci.image.config.v1+json",
      "digest": "sha256:e75ff1d806b99c41ff0f797f6800a85546d5ebf447d69796ec1db166809a41a2",
      "size": 585
    },
    {
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "digest": "sha256:6769e746bda352f77bbc473606b8e55bed52a2e091d7bba0d953aba8915410ac",
      "size": 480,
      "platform": {
        "architecture": "arm64",
        "os": "linux"
      }
    },
    {
      "mediaType": "application/vnd.oci.image.config.v1+json",
      "digest": "sha256:1c1104847de44646826edc258cfc23c4955f05ab2110d6aa1944ee283f993bb2",
      "size": 585
    },
    {
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "digest": "sha256:a8287ced569f2ab73e293791fcab87478106a5b87eda2567ada9341c675f52c2",
      "size": 838,
      "annotations": {
        "vnd.docker.reference.digest": "sha256:465f515dfba9a241c3af16b4154e4161db1e8de1055b753434874158e7ae05d9",
        "vnd.docker.reference.type": "attestation-manifest"
      },
      "platform": {
        "architecture": "unknown",
        "os": "unknown"
      }
    },
    {
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "digest": "sha256:c844cf966bdfe7d63e4b87f69b66238fe0e8e42539faa3240258b07f3e85d45d",
      "size": 838,
      "annotations": {
        "vnd.docker.reference.digest": "sha256:6769e746bda352f77bbc473606b8e55bed52a2e091d7bba0d953aba8915410ac",
        "vnd.docker.reference.type": "attestation-manifest"
      },
      "platform": {
        "architecture": "unknown",
        "os": "unknown"
      }
    }
]

Copy link
Member

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

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

Check the CI errors

exporter/containerimage/export.go Outdated Show resolved Hide resolved
@LaurentGoderre LaurentGoderre force-pushed the metadata-descriptors branch 2 times, most recently from e1a6070 to 9825a27 Compare October 29, 2024 13:48
@LaurentGoderre LaurentGoderre marked this pull request as ready for review October 31, 2024 16:42
@LaurentGoderre LaurentGoderre force-pushed the metadata-descriptors branch 2 times, most recently from 10da43c to 89e41a8 Compare November 4, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants