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

Switch to gcr.io endpoint that doesn't require auth. #1300

Merged
merged 1 commit into from Jul 22, 2020

Conversation

EricEdens
Copy link
Contributor

Our build is currently failing with

ERRO[0000] Error while retrieving image from cache: marketplace.gcr.io/google/debian9 GET https://marketplace.gcr.io/v2/google/debian9/manifests/latest: UNAUTHORIZED: You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication

Based on GoogleContainerTools/kaniko#659, one solution is to switch to an endpoint that doesn't require authentication. This endpoint that I'm using comes from the docs for managed images: https://github.com/GoogleContainerTools/base-images-docker/tree/master/debian

Testing:

I reproduced the issue locally by invoking kaniko directly. After switching to the new endpoint, the image was able to build.

@zoran15
Copy link
Contributor

zoran15 commented Jul 22, 2020

Our build is currently failing with

`ERRO[0000] Error while retrieving image from cache: marketplace.gcr.io/google/debian9 GET

Why did this start failing now? What base image did we use before?

Copy link
Contributor

@dntczdx dntczdx left a comment

Choose a reason for hiding this comment

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

LGTM

@EricEdens
Copy link
Contributor Author

Our build is currently failing with
`ERRO[0000] Error while retrieving image from cache: marketplace.gcr.io/google/debian9 GET

Why did this start failing now? What base image did we use before?

Previously we used the image from docker hub:

https://github.com/GoogleCloudPlatform/compute-image-tools/blob/aa1cca8adc9530bf24a69e1b290a8d7dcf74127b/gce_vm_image_import.Dockerfile

Zach pointed me to GCP's managed base images: https://cloud.google.com/container-registry/docs/managed-base-images

@google-oss-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dntczdx, EricEdens, zoran15

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [EricEdens,dntczdx,zoran15]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@EricEdens EricEdens merged commit ac3a557 into GoogleCloudPlatform:master Jul 22, 2020
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.

None yet

4 participants