-
Notifications
You must be signed in to change notification settings - Fork 33
specifying image registries #261
specifying image registries #261
Conversation
Signed-off-by: Jacob Berger <jacob.berger@ibm.com>
| - Codewind deployment registry: `docker-registry.default.svc:5000/<project>` | ||
| - Credentials: OpenShift user name and token | ||
|
|
||
| ### Specifying Image Registries for Codewind |
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.
I might not have mentioned this before...but for titles we only capitalize the first word of the title and any names that are normally capitalized. Doc titles and section titles are not like book titles. ;) So, for this title, it would just be, "Specifying image registries for Codewind"
| - Dockerhub: | ||
| - Host: `docker.io` | ||
| - Codewind deployment registry: `docker.io/<username>` | ||
| - Credentials: Dockerhub user name and password |
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.
We also support tokens for Docker Hub, so Credentials: Docker Hub user name and password or access token
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.
To expand on this: We support tokens for any Docker registry that supports using tokens for authentication (Docker Hub, IBM Container Registry, Quay, GCR, etc)
|
|
||
| ## Examples: | ||
| The following deployment registries have been tested and verified with Codewind: | ||
| - Dockerhub: |
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.
| - Credentials: OpenShift user name and token | ||
|
|
||
| ### Specifying Image Registries for Codewind | ||
| There are three scenarios in Codewind where you need to specify what image registry to use: |
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.
There are three scenarios, but number 2 below is not correct, not all appsody style projects need an image registry. The three scenarios are:
- If you run Codewind on a remote Kubernetes cluster (this includes Che) to develop an Appsody style project, and the image registry for the Appsody stack requires credentials, you need to configure Codewind to use the credentials for that specific image registry.
- If you run Codewind locally to develop an Appsody style project, and the the image registry for the Appsody stack requires credentials, you need to
docker loginto the registry from the command line before you create the Appsody project. - If you run Codewind on a remote Kubernetes cluster (this includes Che) to develop a Codewind style project, you need to configure Codewind with an image registry to push the application's image to.
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.
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.
I missed this. Looks like what @jopit put is correct and the doc is already edited to reflect this.
Only a minor nit: "the image registry for the Appsody stack requires..." sounds weird to me and maybe better to say "the image registry where the Appsody stack image resides requires..."
|
|
||
| If you do not develop any Codewind style projects,and you use an image registry that does not require credentials, then you do not need to specify an image registry. | ||
|
|
||
| ### Instructions specific to IBM Cloud Private |
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.
@johnmcollier @elsony Does it make any sense to talk about Codewind and IBM Cloud Private at this point, or should this section be removed?
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.
@jopit It does not in my opinion.
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.
So I vote to remove it
| ## Examples: | ||
| The following deployment registries have been tested and verified with Codewind: | ||
| - Dockerhub: | ||
| - Host: `docker.io` |
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.
These keys have also changed. The new Codewind UI has no such fields.
They are address, username, password and namespace.
Another question is, should we provide a screenshot of the Image Registries UI with this doc? It'll make things easier for anyone reading it.
|
@jopit, @maysunfaisal, see the new commit "modified" reflecting the discussed changes. @jopit, I omitted the instructions to IBM Cloud private. If we decided we want to keep it, I can put it back in. We can discuss today at our Plugins. I also thought we could discuss where we want the doc in the TOC (leave it where it is or move it) at today's meeting. @maysunfaisal, do you have a specific screenshot you want me to use or think we can wait on the screenshot for a later release? Thanks both for your help--JB |
| - Host: `docker.io` | ||
| - Docker Hub: | ||
| - Address: `docker.io` | ||
| - Codewind deployment registry: `docker.io/<username>` |
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.
This needs to be Namespace instead of Codewind deployment registry. Value can be <namespace>
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.
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.
I'm wondering if we want to clarify that <namespace> will likely be your username on Docker Hub?
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.
or we can use this above screenshot with doc eclipse-archived/codewind#1488 (comment) since https://www.eclipse.org/codewind/openshiftregistry.html needs to be updated to reflect this PR
And honestly, i think the screenshot being in the other doc sounds better.
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.
@maysunfaisal and @johnmcollier, I'll make these changes and save the screenshot for 1488.
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.
@j-c-berger thx. Maybe in the namespace field, can we add a hint in parenthesis like John suggested?
for Docker Hub the Namespace value is most likely to be the username.
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.
@maysunfaisal, yep, can do!
Signed-off-by: Jacob Berger <jacob.berger@ibm.com>
Signed-off-by: Jacob Berger <jacob.berger@ibm.com>
|
@jopit, per the Plugin meeting's conversation, I've made a new commit (see above) regarding the doc's new position in the TOC. |
| The following deployment registries have been tested and verified with Codewind: | ||
| - Docker Hub: | ||
| - Address: `docker.io` | ||
| - Namespace: `docker.io/<username>` |
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.
Should be Namespace: '<namespace>'
| - Credentials: Docker Hub username and password or token access | ||
| - Quay.io: | ||
| - Address: `https://quay.io` | ||
| - Namespace: `https://quay.io/<username>` |
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.
Should be Namespace: '<namespace>'
| - Credentials: Quay.io user name and encrpyted password | ||
| - Artifactory | ||
| - Address: `<artifactory-hostname>` | ||
| - Namespace: `<artifactory-hostname>/<username>` |
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.
Should be Namespace: '<namespace>'
| - Credentials: Artifactory user name and token | ||
| - OpenShift Registry | ||
| - Address: `docker-registry.default.svc:5000` | ||
| - Namespace: `docker-registry.default.svc:5000/<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.
Should be Namespace: '<project>'
Signed-off-by: Jacob Berger <jacob.berger@ibm.com>
|
@jopit changes made, thanks! See changes in new commit, "changes to namespace" |
| order: 1 | ||
| --- | ||
| # Codewind Docker registry guidance | ||
| When you run Codewind on Kubernetes, Codewind uses [`buildah`](https://github.com/containers/buildah) to build container images from Dockerfiles and to push the images to an image registry that you specify. You can use the `Image Registry Manager` in your Codewind IDE to configure the registry to use. |
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.
Just spotted this, I think we need to clarify by changing ...on Kubernetes, Codewind uses.. to something like ..on Kubernetes, for Codewind style projects, Codewind uses...
This is because for non-codewind style projects, there is no pushing of images, and so no need to specify a push 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.
Agreed with @jopit. This doc was originally written before Codewind on Kube supported Appsody and Odo projects.
Signed-off-by: Jacob Berger <jacob.berger@ibm.com>
|
@jopit and/or @johnmcollier made the changes. Slowly, yet surely, we're rounding this bugger out! |
Signed-off-by: Jacob Berger <jacob.berger@ibm.com>
* specifying image registries Signed-off-by: Jacob Berger <jacob.berger@ibm.com> * modified Signed-off-by: Jacob Berger <jacob.berger@ibm.com> * modified--changes to namespace Signed-off-by: Jacob Berger <jacob.berger@ibm.com> * changed location of image-registry-credentials.md in the TOC Signed-off-by: Jacob Berger <jacob.berger@ibm.com> * changes to namespace Signed-off-by: Jacob Berger <jacob.berger@ibm.com> * codewind style projectds on kubernetes Signed-off-by: Jacob Berger <jacob.berger@ibm.com> * removed my changes from TOC in order to resolve merge conflict Signed-off-by: Jacob Berger <jacob.berger@ibm.com>


New PR for issue 1178: eclipse-archived/codewind#1178
@jopit and/or @tetchel ready for your review. Let me know what more work needs to be done.
Since this doc isn't VS Code, Eclipse, or Che specific, I advise we move out from under 'Codewind for Eclipse Che' and simply give it its own section under
Developing with Codewind.Signed-off-by: Jacob Berger jacob.berger@ibm.com