Skip to content

Instantly share code, notes, and snippets.

@estesp
Created July 11, 2017 17:03
Show Gist options
  • Save estesp/37c71199aeff625368e2842268d0b914 to your computer and use it in GitHub Desktop.
Save estesp/37c71199aeff625368e2842268d0b914 to your computer and use it in GitHub Desktop.
gcr.io looks like it *almost* supports manifest list v2.2 spec objects
$ ./manifest-tool --debug push from-spec alpine-gcp.yaml
DEBU[0000] endpoints: [{false https://gcr.io v2 false true 0xc420352000} {false http://gcr.io v2 false true 0xc420352000} {false https://gcr.io v1 false true
0xc420352180} {false http://gcr.io v1 false true 0xc420352180}]
DEBU[0000] repoName: test-gcloud-1690/alpine
INFO[0000] Retrieving digests of images...
DEBU[0000] authConfig for gcr.io: oauth2accesstoken
DEBU[0000] endpoints: [{false https://gcr.io v2 false true 0xc420352300} {false http://gcr.io v2 false true 0xc420352300}]
DEBU[0000] Trying to fetch image manifest of gcr.io/test-gcloud-1690/alpine_ppc64le repository from https://gcr.io v2
INFO[0001] Image "gcr.io/test-gcloud-1690/alpine_ppc64le:latest" is digest sha256:15780ed5342bafabe42cb609d2ca62534c12c1ae7681b10b978d2a8e781e0957; size: 528 DEBU[0001] Adding manifest references of "gcr.io/test-gcloud-1690/alpine_ppc64le:latest" to blob mount requests
DEBU[0001] Adding manifest "test-gcloud-1690/alpine_ppc64le" -> to be pushed to "test-gcloud-1690/alpine" as a manifest reference
DEBU[0001] authConfig for gcr.io: oauth2accesstoken
DEBU[0001] endpoints: [{false https://gcr.io v2 false true 0xc4202ee180} {false http://gcr.io v2 false true 0xc4202ee180}]
DEBU[0001] Trying to fetch image manifest of gcr.io/test-gcloud-1690/alpine_amd64 repository from https://gcr.io v2
INFO[0003] Image "gcr.io/test-gcloud-1690/alpine_amd64:latest" is digest sha256:1072e499f3f655a032e88542330cf75b02e7bdf673278f701d7ba61629ee3ebe; size: 528
DEBU[0003] Adding manifest references of "gcr.io/test-gcloud-1690/alpine_amd64:latest" to blob mount requests
DEBU[0003] Adding manifest "test-gcloud-1690/alpine_amd64" -> to be pushed to "test-gcloud-1690/alpine" as a manifest reference
DEBU[0003] authConfig for gcr.io: oauth2accesstoken
DEBU[0003] endpoints: [{false https://gcr.io v2 false true 0xc4203ba300} {false http://gcr.io v2 false true 0xc4203ba300}]
DEBU[0003] Trying to fetch image manifest of gcr.io/test-gcloud-1690/alpine_s390x repository from https://gcr.io v2
INFO[0004] Image "gcr.io/test-gcloud-1690/alpine_s390x:latest" is digest sha256:4313f086b6ec7a18c21effbb86b01a643d08529c79684c823655c3136a2e3887; size: 528
DEBU[0004] Adding manifest references of "gcr.io/test-gcloud-1690/alpine_s390x:latest" to blob mount requests
DEBU[0004] Adding manifest "test-gcloud-1690/alpine_s390x" -> to be pushed to "test-gcloud-1690/alpine" as a manifest reference
DEBU[0004] authConfig for gcr.io: oauth2accesstoken
DEBU[0004] endpoints: [{false https://gcr.io v2 false true 0xc4204dc000} {false http://gcr.io v2 false true 0xc4204dc000}]
DEBU[0004] Trying to fetch image manifest of gcr.io/test-gcloud-1690/alpine_aarch64 repository from https://gcr.io v2
INFO[0008] Image "gcr.io/test-gcloud-1690/alpine_aarch64:latest" is digest sha256:b06041f25eb362e78cac279242fa2ffb548a6788dd1663a45bf4b5b01994a8ce; size: 528 DEBU[0008] Adding manifest references of "gcr.io/test-gcloud-1690/alpine_aarch64:latest" to blob mount requests
DEBU[0008] Adding manifest "test-gcloud-1690/alpine_aarch64" -> to be pushed to "test-gcloud-1690/alpine" as a manifest reference
DEBU[0008] Manifest list push url: https://gcr.io/v2/test-gcloud-1690/alpine/manifests/latest
DEBU[0008] mediaType of manifestList: application/vnd.docker.distribution.manifest.list.v2+json
DEBU[0008] authConfig for gcr.io: oauth2accesstoken
DEBU[0009] Mount of blob sha256:94de54a1384eecad706e385f2e4c4a4d050a5e87643b35625b86cabec49e636b succeeded, location: "https://gcr.io/v2/test-gcloud-1690/alpine/blobs/sha256:94de54a1384eecad706e385f2e4c4a4d050a5e87643b35625b86cabec49e636b"
DEBU[0010] Mount of blob sha256:d3903036091bfc02ccb0187836e284ba6bf25e4fc440b02bf90a6636379e4a2b succeeded, location: "https://gcr.io/v2/test-gcloud-1690/alpine/blobs/sha256:d3903036091bfc02ccb0187836e284ba6bf25e4fc440b02bf90a6636379e4a2b"
DEBU[0011] Mount of blob sha256:7328f6f8b41890597575cbaadc884e7386ae0acc53b747401ebce5cf0d624560 succeeded, location: "https://gcr.io/v2/test-gcloud-1690/alpine/blobs/sha256:7328f6f8b41890597575cbaadc884e7386ae0acc53b747401ebce5cf0d624560"
DEBU[0012] Mount of blob sha256:88286f41530e93dffd4b964e1db22ce4939fffa4a4c665dab8591fbab03d4926 succeeded, location: "https://gcr.io/v2/test-gcloud-1690/alpine/blobs/sha256:88286f41530e93dffd4b964e1db22ce4939fffa4a4c665dab8591fbab03d4926"
DEBU[0013] Mount of blob sha256:63a4f4f247759ca1f5cd8a69ec06b6b48a0c9fbd407c53a0ee088f56bdbbd96b succeeded, location: "https://gcr.io/v2/test-gcloud-1690/alpine/blobs/sha256:63a4f4f247759ca1f5cd8a69ec06b6b48a0c9fbd407c53a0ee088f56bdbbd96b"
DEBU[0013] Mount of blob sha256:82165d4deb5f83fc0f9be0e02efbe5245c743790e7776fb7bdd3fc1647d88c98 succeeded, location: "https://gcr.io/v2/test-gcloud-1690/alpine/blobs/sha256:82165d4deb5f83fc0f9be0e02efbe5245c743790e7776fb7bdd3fc1647d88c98"
DEBU[0015] Mount of blob sha256:8e8812ba3b2d44c581d76fa0ad56a60e346c10cb1a778b10089d3d385502e0a4 succeeded, location: "https://gcr.io/v2/test-gcloud-1690/alpine/blobs/sha256:8e8812ba3b2d44c581d76fa0ad56a60e346c10cb1a778b10089d3d385502e0a4"
DEBU[0015] Mount of blob sha256:a16264fac40fbd0870f47657be6eb627cbf167c01c2ae9785ba030d244ac3d67 succeeded, location: "https://gcr.io/v2/test-gcloud-1690/alpine/blobs/sha256:a16264fac40fbd0870f47657be6eb627cbf167c01c2ae9785ba030d244ac3d67"
DEBU[0015] manifest reference push URL: https://gcr.io/v2/test-gcloud-1690/alpine/manifests/sha256:15780ed5342bafabe42cb609d2ca62534c12c1ae7681b10b978d2a8e781e0957
DEBU[0016] referenced manifest "test-gcloud-1690/alpine_ppc64le" pushed; digest matches: sha256:15780ed5342bafabe42cb609d2ca62534c12c1ae7681b10b978d2a8e781e0957
DEBU[0016] manifest reference push URL: https://gcr.io/v2/test-gcloud-1690/alpine/manifests/sha256:1072e499f3f655a032e88542330cf75b02e7bdf673278f701d7ba61629ee3ebe
DEBU[0018] referenced manifest "test-gcloud-1690/alpine_amd64" pushed; digest matches: sha256:1072e499f3f655a032e88542330cf75b02e7bdf673278f701d7ba61629ee3ebe
DEBU[0018] manifest reference push URL: https://gcr.io/v2/test-gcloud-1690/alpine/manifests/sha256:4313f086b6ec7a18c21effbb86b01a643d08529c79684c823655c3136a2e3887
DEBU[0019] referenced manifest "test-gcloud-1690/alpine_s390x" pushed; digest matches: sha256:4313f086b6ec7a18c21effbb86b01a643d08529c79684c823655c3136a2e3887
DEBU[0019] manifest reference push URL: https://gcr.io/v2/test-gcloud-1690/alpine/manifests/sha256:b06041f25eb362e78cac279242fa2ffb548a6788dd1663a45bf4b5b01994a8ce
DEBU[0020] referenced manifest "test-gcloud-1690/alpine_aarch64" pushed; digest matches: sha256:b06041f25eb362e78cac279242fa2ffb548a6788dd1663a45bf4b5b01994a8ce
FATA[0021] Registry push unsuccessful: response 400: 400 Bad Request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment