|
| 1 | +--- |
| 2 | +layout: docs |
| 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 |
| 6 | +duration: 5 minutes |
| 7 | +permalink: dockerregistry |
| 8 | +type: document |
| 9 | +parent: installoncloud |
| 10 | +order: 1 |
| 11 | +--- |
| 12 | +# Codewind Docker registry guidance |
| 13 | +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. |
| 14 | + |
| 15 | +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. |
| 16 | + |
| 17 | +Before you proceed, see the [examples](#examples) section on recommended values for common registries: |
| 18 | + |
| 19 | +## Examples: |
| 20 | +The following deployment registries have been tested and verified with Codewind: |
| 21 | +- Docker Hub: |
| 22 | + - Address: `docker.io` |
| 23 | + - Namespace: `<namespace>` |
| 24 | + - Credentials: Docker Hub username and password or token access |
| 25 | +- Quay.io: |
| 26 | + - Address: `https://quay.io` |
| 27 | + - Namespace: `<namespace>` |
| 28 | + - Credentials: Quay.io user name and encrpyted password |
| 29 | +- Artifactory |
| 30 | + - Address: `<artifactory-hostname>` |
| 31 | + - Namespace: `<namespace>` |
| 32 | + - Credentials: Artifactory user name and token |
| 33 | +- OpenShift Registry |
| 34 | + - Address: `docker-registry.default.svc:5000` |
| 35 | + - Namespace: `<project>` |
| 36 | + - Credentials: OpenShift user name and token |
| 37 | +**Note:** For Docker Hub, the `Namespace` value is likely to be your username. |
| 38 | + |
| 39 | +### Specifying image registries for Codewind |
| 40 | +There are three scenarios in Codewind where you need to specify what image registry to use: |
| 41 | + |
| 42 | +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. |
| 43 | +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. |
| 44 | +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. |
| 45 | + |
| 46 | +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. |
| 47 | + |
| 48 | +### Instructions specific to OKD and OpenShift |
| 49 | +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