-
Notifications
You must be signed in to change notification settings - Fork 391
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
[MRG] Add instructions for setting up an Azure Container Registry #878
Conversation
doc/setup-binderhub.rst
Outdated
where: | ||
|
||
* `<ACR_NAME>` is the name you gave to your ACR, | ||
* `<project-name>` is an arbitrary name that is required due to BinderHub's hard dependency on the `gcr.io` image structure above. |
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.
Can we replace "hard dependency" with "assumes that the image_prefix
contains an extra level for the project name". We could fix this after all but so far haven't gotten round to it.
Do you think it would help people if we made a recommendation here as to what to use as a name? My recommendation would be to reuse <ACR_NAME>
.
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.
Changing the language 👍
It's tough to suggest a name as it has to be unique across all of Azure. So I ended up with testregistry1234sgibson91THISHADBETTERWORK
before my test registry was deployed into a unique namespace 🙂 This is why I suggested the check-name
function in the setup registry docs.
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.
AH, I didn't mean to suggest a actual name name for ACR_NAME. I was thinking we should say that "a good value to use for <project-name>
is the same value as you use for your <ACR_PROJECT>
".
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.
Ah, I see! Yeah that would work. I've personally gone with the name I gave to the BinderHub, so if there's multiple Hubs attached, you can see what came from where.
Looks excellent to me. I left one comment about "hard dependencies". I didn't try and follow the instructions (no AZR account) but read the commands and didn't spot any obvious typos. |
Summary
This PR will add documentation around setting up and connecting an Azure Container Registry (ACR) to a BinderHub.
fixes #869
Changes Proposed in this PR
doc/setup-registry.rst
- Azure command line instructions for creating an ACR, assigning the correct permissions and collecting relevant information have been addeddoc/setup-binderhub.rst
- templates forsecret.yaml
andconfig.yaml
have been added to parse the information to BinderHubdoc/setup-binderhub.rst
to point out the hard dependency on thegcr.io
image name structure.