You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 28, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: docs/_documentations/dockerregistry.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ Before you deploy your project with Codewind, first specify a deployment registr
50
50
1. When you first deploy a project in Codewind, Codewind prompts you to set a deployment registry.
51
51
- If Codewind detects the registry is unset, Codewind prompts before deploying a project.
52
52
2. Enter a path with which to push your container.
53
-
-**Important:** Before attempting this step, ensure that you have entered the registry credentials with the Che dashboard.
53
+
-**Important:** Before attempting this step, ensure that you have correctly entered the registry credentials in the Che dashboard in Step 1.
54
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.
Copy file name to clipboardExpand all lines: docs/_documentations/installoncloud.md
+27-11
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ parent: root
19
19
4.[After installing Che](#after-installing-che)
20
20
5.[Creating the Codewind workspace](#creating-the-codewind-workspace)
21
21
6.[Updating the version](#updating-the-version)
22
+
7.[Adding additional rules to support Codewind ODO extension](#adding-additional-rules-to-support-codewind-odo-extension)
22
23
23
24
## Prerequisites
24
25
- Set up the PersistentVolume (PV) with either Network File System (NFS) or GlusterFS.
@@ -27,7 +28,7 @@ parent: root
27
28
- Ensure the cluster can pull images from `docker.io/eclipse`.
28
29
- Both Eclipse Che and Eclipse Codewind host their Docker images on `docker.io/eclipse`. Ensure that your cluster can pull from that registry and does not have `PodSecurityPolicies` blocking it from accessing Docker Hub.
29
30
- Set up the ClusterRole for Codewind.
30
-
1. Clone the [Codewind Che plug-in repository](https://github.com/eclipse/codewind-che-plugin)
31
+
1. Clone the [Codewind Che plug-in repository](https://github.com/eclipse/codewind-che-plugin).
31
32
2. Enter the `cd` command to go to the `codewind-che-plugin` repository.
32
33
3. Run the `kubectl apply -f setup/install_che/codewind-clusterrole.yaml` command to create a cluster role with the required permission.
33
34
4. Next, run the `kubectl apply -f setup/install_che/codewind-rolebinding.yaml` command.
@@ -41,7 +42,7 @@ Complete the following steps after you install `chectl`:
41
42
1. Download the [codewind-che checluster yaml](https://github.com/eclipse/codewind-che-plugin/blob/master/setup/install_che/che-operator/codewind-checluster.yaml) file to your machine.
42
43
- You can modify this file, but leave the `spec.server.cheWorkspaceClusterRole` field set to `eclipse-codewind` and the `spec.storage.preCreateSubPaths` field set to `true`.
43
44
2. If you're installing on a Kubernetes platform other than OpenShift, determine your Ingress domain. If you're unsure of your Ingress domain, ask your cluster administrator.
44
-
- Set the `spec.server.ingressDomain` field in the Che .yaml to the Ingress domain.
45
+
- Set the `spec.server.ingressDomain` field in the Che `.yaml` to the Ingress domain.
45
46
3. Install Che:
46
47
- On OpenShift 3.x run the following command: `chectl server:start --platform=openshift --installer=operator --che-operator-cr-yaml=<codewind-che.yaml file>`
47
48
- On Kubernetes run the following command: `chectl server:start --platform=k8s --installer=operator --domain=<ingress-domain> --che-operator-cr-yaml=<codewind-che.yaml file>`
@@ -55,29 +56,28 @@ Codewind is required to run as privileged and as root, because it builds contain
55
56
56
57
### Adding registries in Che
57
58
After Che is started and running, add the container registry that will be used with Codewind.
58
-
- On IBM Cloud Private, push your
59
-
to any Docker registry *except* the internal Docker registry
60
-
- On OpenShift or other Kube platforms, you can push your images to any Docker registry, such as Dockerhub, Quay.io, Google Cloud Registry (GCR), and more.
59
+
- On OpenShift or other Kube platforms, you can push your images to any Docker registry, such as Docker Hub, Quay.io, Google Cloud Registry (GCR), and more.
60
+
- On IBM Cloud Private, you can push your image to any Docker registry *except* the internal Docker registry.
61
61
62
-
Complete the following instructions to add the registries:
62
+
You'll need the following information to complete the instructions to add the registries:
63
63
- Server: `<registry-to-push-images-to>`
64
64
- Username: `<Your username>`
65
65
- Password: `<Your password>`
66
66
67
-
For further information on adding deployment registries to Che, consult our [registry documentation](https://www.eclipse.org/codewind/dockerregistry.html)
67
+
For information on adding deployment registries to Che, consult our [registry documentation](https://www.eclipse.org/codewind/dockerregistry.html).
68
68
69
69
## Creating the Codewind workspace
70
70
71
71
### Confirm the Docker registry secrets.
72
-
Confirm that you added the docker registry secrets in the Che dashboard. Go to **Administration**>**Add Registry** to check for the secrets.
72
+
Confirm that you added the Docker registry secrets in the Che dashboard. Go to **Administration**>**Add Registry** to check for the secrets.
73
73
74
74
### Creating the Codewind workspace with a Devfile
75
75
The general format for creating a Che workspace via a factory is:
@@ -101,7 +101,7 @@ For more information about Tekton, see [Getting started with the Tekton Dashboar
101
101
## After installing Codewind
102
102
103
103
### Setting the Docker registry
104
-
Upon creating a Codewind workspace. The container registry to deploy your projects to must be set. When you go to create or add an existing project to Codewind, Codewind will prompt you for the registry. See (Docker registry docs) for guidance on using proper container registries
104
+
After creating a Codewind workspace. The container registry to deploy your projects to must be set. When you go to create or add an existing project to Codewind, Codewind will prompt you for the registry. See [Docker registry docs](https://www.eclipse.org/codewind/dockerregistry.html) for guidance on using proper container registries.
105
105
106
106
If you would like to change the registry that's used at any time, run the `Codewind: Set Deployment Registry` command in Theia to dynamically set a new registry for your workspace. <br>
107
107
@@ -136,4 +136,20 @@ Go to **View**>**Find Command…**>**Codewind: Build**.
136
136
- Enter the following command: `curl -k -H "Content-Type: application/json" -X POST https://codewind-release:9191/api/v1/projects/8801a6d0-7805-11e9-b22f-19482c5ffbd6/build -d '{"action": "build"}'`
137
137
138
138
## Updating the version
139
-
Restart the Codewind workspace in Che. Che automatically pulls the newest version of Codewind and the Theia extension.
139
+
Restart the Codewind workspace in Che. Che automatically pulls the newest version of Codewind and the Theia extension.
140
+
141
+
## Adding additional rules to support Codewind ODO extension
142
+
The Codewind ODO extension needs to add additional rules for accessing OpenShift resources:
143
+
1. In your home directory, run the following command to clone the Codewind ODO extension repository:
Copy file name to clipboardExpand all lines: docs/_documentations/mdt-eclipse-importedprojects.md
+7-1
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ order: 0
12
12
13
13
# Adding existing projects
14
14
15
-
Modifications are usually required to successfully add and deploy projects that have never been run in Codewind before. <!--The add process creates required files if they do not exist.-->This guide covers the basics of configuring a project to run in Codewind.
15
+
Modifications are usually required to successfully add and deploy projects that have never been run in Codewind before. This guide covers the basics of configuring a project to run in Codewind.
16
16
17
17
## What kind of projects can I add?
18
18
@@ -23,6 +23,7 @@ Codewind is designed to develop cloud native microservices. Therefore, each proj
@@ -191,3 +192,8 @@ For example, you should be able to build the project by using the command
191
192
## Generic Docker projects
192
193
193
194
If you have a Dockerized application that doesn't fit an existing template, you can still add the project to Codewind by selecting the **Other (Basic Container)** option as the project type. For the application state detection to work, the Dockerfile needs to include an `EXPOSE` instruction to point to the port that is used to determine whether the project is running.
195
+
196
+
## Appsody projects
197
+
198
+
If you have an existing Appsody project, or a project that you want to add to Codewind as an Appsody project, select the corresponding Appsody project type and, if applicable, the Appsody stack when adding the project.
199
+
For more information about Appsody and Appsody stacks, see [https://appsody.dev](https://appsody.dev).
Copy file name to clipboardExpand all lines: docs/_documentations/mdt-vsc-commands-project.md
+11-10
Original file line number
Diff line number
Diff line change
@@ -23,20 +23,23 @@ Right-click a project in the **Codewind view** to see most project commands. All
23
23
24
24
-**Open app**: Open the project application root endpoint in the system browser. The project must be in the *Running* or *Debugging* state, or the application server won't be available.
25
25
26
-
-**Open application monitor**: Open the Codewind **Application Monitor** page for this project in the system browser.
26
+
-**Open Project Overview**: Open an editor Tab that displays all of the Codewind information for the project. From this page, you can build, disable, or delete the project, and you can change the project auto build setting.
27
27
28
-
-**Open folder as workspace**: Open the project as your VS Code workspace folder. This command is useful if you want to work on just one project at a time per window. If you want the folder to open in a new window, set *window.openFoldersInNewWindow* to **true**.
28
+
-**Open Container Shell**: Open a shell, either *bash* or *sh*, in the project application container with *docker exec*. The project must have a container running. The VS Code integrated terminal needs access to your *PATH* environment variable so that it can run the *docker* command.
29
29
30
-
-**Show project overview**: Open an editor tab that displays all of the Codewind information for the project. From this page, you can build, disable, or delete the project, and you can change the project auto build setting. This page is the only place in the extension where you can delete a project. If you delete a project, you remove it from both Codewind and from your file system.
30
+
-**Open Application Monitor**: Open the Codewind **Application Monitor** page for this projectin the system browser.
31
31
32
-
-**Build**: Manually request an application build for this project. If the project has auto build enabled, this command should not be necessary because builds are triggered automatically with a code change. This command is also available in the project info page.
33
-
This command is equivalent to clicking the **Build** button in the Codewind **Overview** page.
32
+
-**Open Performance Dashboard**: Opens the performance dashboard in the browser. This action is available only when the application is running or debugging.
34
33
35
-
-**Toggle auto build**: Enable or disable auto build for the project. This command is also available in the project info page. This command is equivalent to clicking the **Auto Build** toggle in the Codewind **Overview** page.
34
+
-**Add Project to Workspace**: Add this project's folder on your local disk to your VS Code workspace.
36
35
37
-
-**Open container shell**: Open a shell, either *bash* or *sh*, in the project application container with *docker exec*. The project must have a container running. The VS Code integrated terminal needs access to your *PATH* environment variable so that it can run the *docker* command.
36
+
-**Build**: Manually request an application build for this project. If the project has auto build enabled, this command should not be necessary because builds are triggered automatically with a code change. This command is also available in the project overview page. This command is equivalent to clicking the **Build** button in the Codewind **Overview** page.
38
37
39
-
-**Enable or disable project**: Enable or disable the project. This command is also available in the project info page.<br>
38
+
-**Toggle auto build**: Enable or disable auto build for the project. This command is also available in the project overview.
39
+
40
+
-**Enable or disable project**: Enable or disable the project. This command is also available in the project overview.
41
+
42
+
-**Remove project**: Removes the project from Codewind. The project folder can optionally be deleted from disk after removal. This command is also available in the project overview.
40
43
41
44
## Logs
42
45
@@ -46,8 +49,6 @@ This command is equivalent to clicking the **Build** button in the Codewind **Ov
46
49
47
50
-**Manage logs**: This command presents a list of all logs for this project, which you can toggle individually.
48
51
49
-
-**Project-specific settings**: Edit the internal app and debug ports as well as the **application endpoint**, sometimes known as the **context root**, from the **Project Overview** page.
50
-
51
52
## Configuring project settings
52
53
53
54
Project settings tell Codewind more about the specifics of your project and can affect the status and/or behaviour of your application. Project settings can be configured from the Project Overview page that is accessible from a project's context menu, or you can find the project settings in the `.cw-settings` file of the project which you can edit from the IDE. Changes to these fields are automatically picked up by the workspace.
Copy file name to clipboardExpand all lines: docs/_documentations/mdt-vsc-importedprojects.md
+7-1
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ order: 0
12
12
13
13
# Adding existing projects
14
14
15
-
Modifications are usually required to successfully add and deploy projects that have never been run in Codewind before. <!--The add process creates required files if they do not exist.-->This guide covers the basics of configuring a project to run in Codewind.
15
+
Modifications are usually required to successfully add and deploy projects that have never been run in Codewind before. This guide covers the basics of configuring a project to run in Codewind.
16
16
17
17
## What kind of projects can I add?
18
18
@@ -23,6 +23,7 @@ Codewind is designed to develop cloud native microservices. Therefore, each proj
@@ -192,3 +193,8 @@ For example, you should be able to build the project by using the command
192
193
## Generic Docker projects
193
194
194
195
If you have a Dockerized application that doesn't fit an existing template, you can still add the project to Codewind by selecting the **Other (Basic Container)** option as the project type. For the application state detection to work, the Dockerfile needs to include an `EXPOSE` instruction to point to the port that is used to determine whether the project is running.
196
+
197
+
## Appsody projects
198
+
199
+
If you have an existing Appsody project, or a project that you want to add to Codewind as an Appsody project, select the corresponding Appsody project type and, if applicable, the Appsody stack when adding the project.
200
+
For more information about Appsody and Appsody stacks, see [https://appsody.dev](https://appsody.dev).
0 commit comments