-
Notifications
You must be signed in to change notification settings - Fork 389
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
Support different container registry to push and pull #1904
base: main
Are you sure you want to change the base?
Support different container registry to push and pull #1904
Conversation
for image_prefix_push and image_prefix_pull.
- image_prefix_pull - image_prefix_push
for more information, see https://pre-commit.ci
When I run locally and request a launch for https://github.com/binder-examples/requirements, the output was
There are a minor error related with The launch attempt fail because I was not running Jupyter Hub locally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My initial thoughts are that most BinderHubs will use the same prefix for push and pull, so how about just have image_prefix
as the default property as at present, and maybe add just one new property, image_prefix_pull
?
I think it's fine to keep using the *_push
and *_pull
variables in builder.py if you want though, for clarity.
binderhub/app.py
Outdated
@@ -443,6 +443,42 @@ def _pod_quota_deprecated(self, change): | |||
config=True, | |||
) | |||
|
|||
image_prefix_push = Unicode( | |||
help=""" | |||
Prefix for built docker images push to container registry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefix for built docker images push to container registry. | |
Prefix for built docker images being pushed to the container registry. |
binderhub/app.py
Outdated
|
||
image_prefix_pull = Unicode( | ||
help=""" | ||
Prefix for built docker images pull from container registry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefix for built docker images pull from container registry. | |
Prefix for built docker images being pulled from container registry. |
as suggested by @manics.
You are absolutely right. I think that 99% of BinderHubs will use a single registry. But there will be the 1% like GESIS that want to push to Docker Hub or GitHub Packages Registry and pull from a local Harbor that operates as proxy cache.
|
This covers #1903.