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

Commit 048f79a

Browse files
j-c-bergersishida
authored andcommitted
specifying image registries (#261)
* 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>
1 parent 16bfb43 commit 048f79a

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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

Comments
 (0)