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

gcr.io/trillian-opensource-ci/db_server:v1.6.0 has multiple media types #3338

Closed
coltonfreeman26 opened this issue Feb 6, 2024 · 4 comments · Fixed by #3339
Closed

gcr.io/trillian-opensource-ci/db_server:v1.6.0 has multiple media types #3338

coltonfreeman26 opened this issue Feb 6, 2024 · 4 comments · Fixed by #3339

Comments

@coltonfreeman26
Copy link

good day all,
we are using the latest stable release of gcr.io/trillian-opensource-ci/db_server:v1.6.0 and there seems to be a bug in that build.

when doing a skopeo copy docker-archive we are running into an error with unknown media types

if you look here at the last layer you can see it is a docker type and not OCI
https://console.cloud.google.com/gcr/images/trillian-opensource-ci/global/db_server@sha256:ec1886abed03a4e739e69d0b9bb0fb7bf6e77c083e8f4f11cdd97dcc6f82bbfe/details?tab=pull

is there a plan to rebuild that or is 1.7.0 going to be out soon? this works fine with the latest build as that layer is not there but we are only able to use stable releases.

please let me know if you need any more info.

@AlCutter
Copy link
Member

AlCutter commented Feb 6, 2024

Hmm, I did a quick bit of digging around and I wonder if this is related to GoogleContainerTools/kaniko#2700 - we do seem to use kaniko for building those images (https://github.com/google/trillian/blob/master/cloudbuild_tag.yaml).

@AlCutter
Copy link
Member

AlCutter commented Feb 7, 2024

Not fixed fixed yet... need to do the re-release

@AlCutter
Copy link
Member

AlCutter commented Feb 7, 2024

Hey @coltonfreeman26 - many thanks for reporting this, I've bumped the builder version in our GCB pipeline and re-built the v1.6.0 image. The manifest seems better now, no vnd.docker in there:

{
   "schemaVersion": 2,
   "mediaType": "application/vnd.oci.image.manifest.v1+json",
   "config": {
      "mediaType": "application/vnd.oci.image.config.v1+json",
      "size": 7202,
      "digest": "sha256:ae555225a1c7437ee1447c65b3d5daf70daddd9afec0ed198f76429e5e38492b"
   },
   "layers": [
      {
         "mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
         "size": 51321731,
         "digest": "sha256:558b7d69a2e576e93c7cb18ecd087a92959e912b116323c188183d5cf8ab5b17"
      },
      {
         "mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
         "size": 883,
         "digest": "sha256:599b67b0dd6aff81c190da4012918bee8a167b30ff6af208b3a25e477c3ee291"
      },
      {
         "mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
         "size": 982810,
         "digest": "sha256:50314d46ce2bcc7eb441b7d8b73f0d542f71babfd69783084191ed7cb986d137"
      },
      {
         "mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
         "size": 4590747,
         "digest": "sha256:494babc9226311b1cdb3c1bbde0566ed15b8cff7b61368bf360affae28e40b02"
      },
      {
         "mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
         "size": 2604,
         "digest": "sha256:02548e6f2dbfcde4fb252b2be5c9774d4e85549a9e7c06c29eb8057b462765a7"
      },
      {
         "mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
         "size": 338,
         "digest": "sha256:a9e5e2637e0d574a25e97e904e376bbff5032bc479b018aee24cff78a60c3769"
      },
      {
         "mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
         "size": 62570457,
         "digest": "sha256:657b198fe6b7bc2a01e42dd907b6a8489d053104fb655184b4313489ae324cb4"
      },
      {
         "mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
         "size": 329,
         "digest": "sha256:215a2b0eabbf35b7447ec5212dc2f78db031e9b168ea5ef3f7e1aebc75c3ce95"
      },
      {
         "mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
         "size": 62074091,
         "digest": "sha256:377a4c7a89c59ea677de13ff9b08f4ff4a83c2663dc551171122e907d2ae06fd"
      },
      {
         "mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
         "size": 5181,
         "digest": "sha256:4bfe599fe218ce4ad0aa653323c1c20b55092ee35841646afbcd9aa8e4335d70"
      },
      {
         "mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
         "size": 553,
         "digest": "sha256:3f02aaa20f4baafd81131752014321bd60343f2e480cd08408da606150b55cc2"
      },
      {
         "mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
         "size": 2598,
         "digest": "sha256:9b343616c017f996f05e32ef86c5091b9a35e9647f8cc670572d5e0f40066b20"
      },
      {
         "mediaType": "application/vnd.oci.image.layer.v1.tar+gzip",
         "size": 2594,
         "digest": "sha256:20fde7a7ff7b4c51ba8e4aeb8ab43f1a7129d609f8325f7e4652b9464b386ca8"
      }
   ],
   "annotations": {
      "org.opencontainers.image.revision": "3e959c224b965b0dd92a59a1dedeb7c34a24f550",
      "org.opencontainers.image.source": "https://github.com/docker-library/mysql.git#3e959c224b965b0dd92a59a1dedeb7c34a24f550:innovation",
      "org.opencontainers.image.url": "https://hub.docker.com/_/mysql",
      "org.opencontainers.image.version": "8.2.0"
   }
}

https://pantheon.corp.google.com/gcr/images/trillian-opensource-ci/global/db_server@sha256:cb8fc958d0e3e56d5d67be259837cb431ed2119f0797a2eb62ea3b0aa66ba3a2/details?tab=manifest

Could you give it a try and see if it's working for you now?

Cheers,
Al.

@coltonfreeman26
Copy link
Author

coltonfreeman26 commented Feb 7, 2024

its looking good now. thank you all for the quick work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants