Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

[18.09 backport] builder: add workaround for gcr auth issue #203

Merged

Conversation

thaJeztah
Copy link
Member

back ports of moby#38246 and moby#39183 for 18.09

fixes moby#39182
addresses moby/buildkit#720 (comment)

GCR does not currently support 401 response from blob endpoints.
This detects the case where no manifest requests have been
performed for the current resolver and does a dummy request
to enable authorization.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit bcd8298)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit cfce0ac)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@tonistiigi
Copy link

tonistiigi commented May 7, 2019

7c197c1 is already picked to 19.03 edit: didn't notice this was 18.09

@tonistiigi tonistiigi changed the title [18.09 backport] builder: add workaround for gcr auth issue WIP [18.09 backport] builder: add workaround for gcr auth issue May 7, 2019
@thaJeztah
Copy link
Member Author

FWIW, made this "WIP" as there's some discussion about wether or not we should backport this hack, as it's (IIUC) something that should be fixed in the Google registries

@thaJeztah
Copy link
Member Author

Experimental failure is a flaky; moby#38521
Janky as well; otherwise looks green

@tiborvass
Copy link

I'm fine either way. Would be great if Google could fix their registry.

@thaJeztah thaJeztah changed the title WIP [18.09 backport] builder: add workaround for gcr auth issue [18.09 backport] builder: add workaround for gcr auth issue May 14, 2019
Copy link

@andrewhsu andrewhsu left a comment

Choose a reason for hiding this comment

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

LGTM

@andrewhsu andrewhsu merged commit 6b2d2eb into docker-archive:18.09 Jun 18, 2019
@thaJeztah thaJeztah deleted the 18.09_backport_gcr_workaround branch June 18, 2019 17:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants