Carlos O'Ryan
Carlos O'Ryan
Looks like this feature is not available in the gRPC API: https://github.com/googleapis/googleapis/blob/0e50601ea3d1f828a90d2ddbd52920fcafd461fd/google/storage/v2/storage.proto#L1190
This is now done.
Seems like this could be useful: https://github.com/GoogleContainerTools/kaniko/blob/master/README.md#--registry-mirror
I tried adding `--registry-mirror=mirror.gcr.io` and did not work. From what I could gather from the error messages, `mirror.gcr.io` does not host a number of images we need (Fedora:33, or Ubuntu:bionic)....
This one is similar enough that I think we should consolidate them: https://pantheon.corp.google.com/cloud-build/builds;region=global/9ef522b9-59b8-4ca9-9a71-0d5789a497ee;step=0?project=cloud-cpp-testing-resources ``` error building image: GET https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/ae/aefd7f02ae24739b95f77c488de70465c54653f394097b9859acede976c80e03/data?verify=REDACTED: unsupported status code 502; body: 502 Bad Gateway 502 Bad Gateway...
I figured out why `--registry-mirror=mirror.gcr.io` does not work: it just holds "latest" of each popular image, bummer.
A different solution may involve using the "warmer" program: https://github.com/GoogleContainerTools/kaniko/tree/master/cmd/warmer This can download the base image to `/cache` which could be a shared volume between the `warmer` and the `kaniko`...
No repeats in 90d, closing. I suspect we will need to reopen though.
Maybe this can help: https://github.com/GoogleContainerTools/kaniko/blob/v1.8.0/README.md#--image-fs-extract-retry
90d without a repeat, closing.