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

Revert "Support mirror registries with path component (#1707)" #1794

Merged
merged 2 commits into from
Oct 21, 2021

Conversation

tejal29
Copy link
Member

@tejal29 tejal29 commented Oct 20, 2021

Fixes #1793 #1790 #1791

@tejal29 tejal29 merged commit ee31dc9 into GoogleContainerTools:master Oct 21, 2021
dancerj added a commit to dancerj/gitlstreefs that referenced this pull request Oct 31, 2021
This reverts commit 45c2dd5.

I believe the latest is now pointing back to 1.6 until the proper fix is landed.

GoogleContainerTools/kaniko#1791
GoogleContainerTools/kaniko#1794
bdwyertech added a commit to bdwyertech/kaniko-gitlab that referenced this pull request Nov 15, 2021
Pin to 1.6.0 until 1.7.1 fix is released

Ref: GoogleContainerTools/kaniko#1794
@stevemk14ebr
Copy link

stevemk14ebr commented Dec 16, 2021

Is there a fix for this planned? I expected to be able to take an existing dockerfile such as:

FROM golang:1.17-alpine

And instruct kaniko to use my mirror like this (fake domain names here for the example):

--registry-mirror harbor-ci.internal.io/team-images/library

Which would then pull from this final URL as if it was my FROM line:

harbor-ci.internal.io/team-images/library/golang:1.17-alpine

however, in reality this fails with the error:

error building image: registries must be valid RFC 3986 URI authorities:

I believe this occurs because of the URI /team-images/library/, but that is required to be passed keep dockerfiles independent from the build environment they're executed in, while pulling from the correct place on the mirror.

if it's unreasonable to fix --registry-mirror, then perhaps a new commandline option. Maybe --mirror-prefix or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes CLA signed by all commit authors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Facing an issue while pushing the docker image to gcr. This was success few hours back
3 participants