Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Conversation

@j-c-berger
Copy link
Contributor

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

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
Copy link
Contributor

@sishida sishida Dec 13, 2019

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
Copy link
Contributor

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

Copy link
Contributor

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:
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe it should be Docker Hub rather than Dockerhub

From https://hub.docker.com/

Screen Shot 2019-12-12 at 1 37 27 PM

- 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:
Copy link
Contributor

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:

  1. 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.
  2. 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 login to the registry from the command line before you create the Appsody project.
  3. 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.

Copy link
Contributor

Choose a reason for hiding this comment

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

@sghung @makandre keep me honest here.

Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Contributor

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.

Copy link
Contributor

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`

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.

Signed-off-by: Jacob Berger <jacob.berger@ibm.com>
@j-c-berger
Copy link
Contributor Author

@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>`

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>

Choose a reason for hiding this comment

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

You may use this screenshot

Screen Shot 2019-12-16 at 12 47 18 PM

Copy link
Contributor

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?

Copy link

@maysunfaisal maysunfaisal Dec 16, 2019

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.

Copy link
Contributor Author

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.

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.

Copy link
Contributor Author

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>
@j-c-berger
Copy link
Contributor Author

@jopit see new commit modified--changes to namespace I didn't see @makandre 's comment about an hour ago regarding "image registry" language. I can make that change but wanted to see if there's anything else you may spot, or if you think it's ready to merge!

Signed-off-by: Jacob Berger <jacob.berger@ibm.com>
@j-c-berger
Copy link
Contributor Author

@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>`
Copy link
Contributor

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>`
Copy link
Contributor

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>`
Copy link
Contributor

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>`
Copy link
Contributor

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>
@j-c-berger
Copy link
Contributor Author

@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.
Copy link
Contributor

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.

Copy link
Contributor

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>
@j-c-berger
Copy link
Contributor Author

@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>
@sishida sishida merged commit 048f79a into eclipse-archived:master Dec 17, 2019
jcockbain pushed a commit to jcockbain/codewind-docs that referenced this pull request May 26, 2020
* 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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants