-
Notifications
You must be signed in to change notification settings - Fork 382
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
ACR support damaged by Gitlab registry change #1620
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
Maybe we should make |
Can you suggest a binderhub/binderhub/tests/test_builder.py Lines 6 to 37 in 3114927
You can anonymise it, but ideally make it as close as possible to a real case. |
I think this would be correct as an ACR example:
I'm not sure (unless the proposed In the logs, I can see a
I've been able to reproduce that in Postman using the following
The URL has two https://binderhub.readthedocs.io/en/latest/zero-to-binderhub/setup-binderhub.html#id3 (section 3.3.3):
A "fix", I think, would be to drop the offending line from
I hope that makes some semblance of sense. My brain is fried today! |
Bug description
I believe ACR support has been damaged by the Gitlab registry change in commit f442f32
Specifically this line:
Expected behaviour
When following a Binderhub link, if a pre-built/cached image already exists in the ACR, I expect Binderhub to pull it, not rebuild from scratch.
Actual behaviour
Binderhub runs
repo2docker
and builds a new image, pushing it to the ACR.The logs contain the following errors:
I believe this is due to the
token_url
configured (shown below) being partially overwritten - specifically the?service=
by the linked git commit above...(I suspect it is becoming
https://********.azurecr.io/oauth2/token?service=container_registry
.)How to reproduce
Follow the instructions in Binderhub's installation docs for an ACR, and attempt to launch the same repository multiple times.
Observe the logs (and behaviour).
Your personal set up
Have installed via Helm:
We are using Helm chart version
1.0.0-0.dev.git.2937.h0f65f33
.The text was updated successfully, but these errors were encountered: