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

Commit ebd7477

Browse files
committed
corrected name and paragraph spacing
Signed-off-by: Jacob Berger <jacob.berger@ibm.com>
1 parent 1acb00d commit ebd7477

File tree

2 files changed

+25
-86
lines changed

2 files changed

+25
-86
lines changed

docs/_documentations/docker-registry.md

Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 25 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
layout: docs
3-
title: Docker registry guidance for Eclipse Codewind
4-
description: Docker registry guidance for Eclipse Codewind
5-
keywords: users, projects, Kubernetes, docker, containers, registry, deployment, push
3+
title: Image registry guidance for Eclipse Codewind
4+
description: Image registry guidance for Eclipse Codewind
5+
keywords: users, projects, Kubernetes, image, registry, deployment, push
66
duration: 5 minutes
77
permalink: dockerregistry
88
type: document
@@ -11,52 +11,40 @@ order: 1
1111
---
1212
# Codewind Docker registry guidance
1313

14-
When you run Codewind on Kubernetes, Codewind uses [`buildah`](https://github.com/containers/buildah) to build container images from Dockerfiles and then push the images to a container registry that you specify.
14+
When you run Codewind on Kubernetes for Codewind style projects, 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.
1515

16-
Codewind is flexible with the registry that can be used as long as `buildah` and the node that Codewind is running on can resolve the registry hostname. If `buildah` is unable to resolve the registry hostname, `buildah` will be unable to push your projects to the registry and will prevent deployment on Kubernetes.
16+
Codewind is flexible with the registry that can be used as long as `buildah` and the node that Codewind is running on can resolve the registry hostname. If `buildah` is unable to resolve the registry hostname,`buildah` is unable to push your projects to the registry, and deployment on Kubernetes is prevented.
1717

1818
Before you proceed, see the [examples](#examples) section on recommended values for common registries:
1919

2020
## Examples:
2121
The following deployment registries have been tested and verified with Codewind:
22-
- Dockerhub:
23-
- Host: `docker.io`
24-
- Codewind deployment registry: `docker.io/<username>`
25-
- Credentials: Dockerhub user name and password
22+
- Docker Hub:
23+
- Address: `docker.io`
24+
- Namespace: `<namespace>`
25+
- Credentials: Docker Hub username and password or token access
2626
- Quay.io:
27-
- Host: `https://quay.io`
28-
- Codewind deployment registry: `https://quay.io/<username>`
27+
- Address: `https://quay.io`
28+
- Namespace: `<namespace>`
2929
- Credentials: Quay.io user name and encrpyted password
3030
- Artifactory
31-
- Host: `<artifactory-hostname>`
32-
- Codewind deployment registry: `<artifactory-hostname>/<username>`
31+
- Address: `<artifactory-hostname>`
32+
- Namespace: `<namespace>`
3333
- Credentials: Artifactory user name and token
3434
- OpenShift Registry
35-
- Host: `docker-registry.default.svc:5000`
36-
- Codewind deployment registry: `docker-registry.default.svc:5000/<project>`
35+
- Address: `docker-registry.default.svc:5000`
36+
- Namespace: `<project>`
3737
- Credentials: OpenShift user name and token
38-
39-
## Step 1: Authenticating registry credentials
40-
To push to the container registry, first add the registry credentials with Che.
41-
1. On the Che dashboard, click the **Administration** tab in the sidebar.
42-
2. Click **Add Registry**.
43-
3. Enter the container registry host, such as `quay.io` or `http://index.docker.io/v1/`.
44-
4. Enter your user credentials for the registry.
45-
These credentials are passed into each Codewind workspace that is deployed in your user account in Che.
46-
5. If a Codewind workspace is already running, restart the workspace to make the changes take effect.
47-
48-
## Step 2: Specifying the deployment registry for the Codewind workspace
49-
Before you deploy your project with Codewind, first specify a deployment registry to push the images to.
50-
1. When you first deploy a project in Codewind, Codewind prompts you to set a deployment registry.
51-
- If Codewind detects the registry is unset, Codewind prompts before deploying a project.
52-
2. Enter a path with which to push your container.
53-
- **Important:** Before attempting this step, ensure that you have correctly entered the registry credentials in the Che dashboard in Step 1.
54-
3. Codewind asks if you want to verify push permissions. If you select **yes**, Codewind pushes a small `hello-world` image to the registry to verify permissions.
55-
56-
### Instructions specific to IBM Cloud Private
57-
- The internal Docker registry on IBM Cloud Private is **not** supported. Instead, you need to use either an external registry or a container registry that you installed yourself.
58-
- If a registry that you installed is using self-signed certificates, the registry must be whitelisted in both Kubernetes and Docker on **all** nodes.
59-
- The `docker.io`, `quay.io`, and `artifactory` container registry hosts have been tested with IBM Cloud Private.
38+
**Note:** For Docker Hub, the `Namespace` value is likely to be your username.
39+
40+
### Specifying image registries for Codewind
41+
There are three scenarios in Codewind where you need to specify what image registry to use:
42+
43+
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.
44+
2. If you run Codewind locally to develop an Appsody style project, and 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.
45+
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 that specific image registry.
46+
47+
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.
6048

6149
### Instructions specific to OKD and OpenShift
6250
To use the OpenShift internal Docker registry with Codewind, see [Using the OpenShift Internal Registry with Codewind](https://www.eclipse.org/codewind/openshiftregistry.html).

0 commit comments

Comments
 (0)