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/appmetrics.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Application Metrics is available in Java, Node.js, and Swift. You can monitor th
25
25
26
26
## Accessing Application Metrics
27
27
28
-
Click **App monitor** in the Microclimate project to access Application Metrics. Toggle between the **Dashboard** and **Summary** tabs. If you have a Node.js project, you can also access the **Profiling** tab.
28
+
Click **App monitor** in the Codewind project to access Application Metrics. Toggle between the **Dashboard** and **Summary** tabs. If you have a Node.js project, you can also access the **Profiling** tab.
29
29
30
30
## Enabling Application Metrics
31
31
@@ -45,35 +45,35 @@ View these metrics to learn if your application is performing as intended. An ap
45
45
46
46
## Clicking the **Run load** button
47
47
48
-
Click the **Run load** button to run load your microservice. This button pings endpoints by using the Microclimate load runner service.
48
+
Click the **Run load** button to run load your microservice. This button pings endpoints by using the Codewind load runner service.
49
49
50
50
## Viewing metrics information in the **Summary** tab
51
51
52
52
View a summary of the information from the performance metrics graphs that you saw in the **Dashboard** tab.
53
53
***HTTP Requests:** This table displays how many times an endpoint is hit. If you repeatedly run a test while making code changes, you can see how the code changes are impacting application performance.
54
54
***Environment:** This table shows information about the environment you're running, such as the OS architecture and the number of processors you have. Having this information can make troubleshooting easier if you need to contact support and provide it.
55
-
***Resource usage:** This table shows the **Average Process CPU**, which shows what Microclimate is doing, and the **Average System CPU**, which shows what the environment as a whole is doing. This information can help determine whether application issues are caused by something else in the environment that is external to the application.
55
+
***Resource usage:** This table shows the **Average Process CPU**, which shows what Codewind is doing, and the **Average System CPU**, which shows what the environment as a whole is doing. This information can help determine whether application issues are caused by something else in the environment that is external to the application.
56
56
57
57
## Viewing the graph in the **Profiling** tab
58
58
59
59
The **Profiling** tab is available only in Node.js projects. This tab pulls information from the CPU metric in the **Dashboard** tab. CPU cycles are caused by an execution of code. Receiving an endpoint doesn't cause many CPU cycles, but receiving an incoming payload can. Profiling shows you what occurs when a spike appears in the CPU metric. Each spike on the flame graph shows a call stack in the path. The width of a spike indicates how much time the CPU spends on a function. Wide spikes indicate that your CPU spends much time on a particular function and where you might want change the code to optimize it.
60
60
61
61
## Profiling Data Support
62
62
63
-
In Theia or VS Code, you can use the Profiling Language Server to provide code highlighting. Code highlighting displays the relative time spent in JavaScript functions based on profiling data gathered through [Microclimate load testing](performancetesting). Profiling support is only available for Node.js projects that are created through Microclimate and then profiled.
63
+
In Theia or VS Code, you can use the Profiling Language Server to provide code highlighting. Code highlighting displays the relative time spent in JavaScript functions based on profiling data gathered through [load testing](performance). Profiling support is only available for Node.js projects that are created through Codewind and then profiled.
64
64
65
65
- Profiling data is written to the workspace only on a successfully completed load run. If the load run is cancelled, it won't be written to the workspace.
66
66
- Run the load run for a minimum of 45 seconds for enough profiling data to be gathered to generate the `profiling.json` file.
67
67
- You can configure the load run time in the `config.json` file in the `load-test` directory. The default time is 2 minutes.
68
68
- Out of all the folders that contain a `profiling.json` file, the most up-to-date `profiling.json` file is the one that is displayed. The code for the older profiling data might be out of date, such as pointing to lines that have been moved.
69
69
70
70
To display code highlighting:
71
-
1. Open a project created with Microclimate and profiled using the [performance testing](performancetesting) feature of Microclimate. Profiling data is created in a `load-test/<datestamp>/profiling.json` file in your Microclimate project.
71
+
1. Open a project created with Codewind and profiled using the [performance testing](performance) feature of Codewind. Profiling data is created in a `load-test/<datestamp>/profiling.json` file in your Codewind project.
72
72
2. In the **Editor** view, open a JavaScript file. The Editor highlights any lines that were found in the profiling data and annotates them to show how often they were seen and where they were called from.
73
73
74
74
To enable or disable the profile highlighting in the code, access the profiling in one of the following ways:
75
75
- Right-click in the editor and select `Toggle Profiling`.
76
-
- Open the command palette with `cmd+shift+p` on a Mac or `ctrl+shift+p` on Windows. Then, select `Microclimate: Profiling: Toggle Profiling`.
76
+
- Open the command palette with `cmd+shift+p` on a Mac or `ctrl+shift+p` on Windows. Then, select `Profiling: Toggle Profiling`.
77
77
- Toggle the `Microprofile Profiling: Show Profiling` setting in the extensions settings.
78
78
79
79
For more information on sample-based profiling, see [Sample-based profiling](https://www.ibm.com/support/knowledgecenter/en/SS3KLZ/com.ibm.java.diagnostics.healthcenter.doc/topics/profiling_using.html).
Copy file name to clipboardExpand all lines: docs/_documentations/importing-existing-projects.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,7 @@ Configure your `pom.xml` file as follows:
122
122
123
123
The following files are generated during the import process. If your project requires additional configuration files or instructions for build, you might need to modify them.
124
124
125
-
**Note:** Only Microprofile projects enable the use of `Dockerfile-lang` and `Dockerfile-build` files.
125
+
**Note:** Only MicroProfile projects enable the use of `Dockerfile-lang` and `Dockerfile-build` files.
126
126
127
127
**Dockerfile-lang**
128
128
@@ -146,7 +146,7 @@ Requirements:
146
146
- The `artifactId` value in the `pom.xml` file must match the project name.
147
147
- Configure the project to build with Maven and produce a exectutable `.jar` file.
148
148
- Configure the application to use port 8080.
149
-
- Copy the executable `.jar` file produced by the Maven build to `/app.jar` within the Docker container. To do this, simply add a `COPY` instruction to the Dockerfile. If your project does not have a Dockerfile, one is generated for you.
149
+
- Copy the executable `.jar` file produced by the Maven build to `/app.jar` within the Docker container. To do this, simply add a `COPY` instruction to the Dockerfile.
150
150
151
151
Example:
152
152
@@ -172,21 +172,21 @@ Your `package.json` must meet the following requirements. For an example of a go
172
172
- If a problem occurs with either script, the error appears in the Application Logs view in Codewind.
173
173
174
174
If you have a `Dockerfile`, it must meet the following requirements:
175
-
-A `Dockerfile` is generated if it does not exist. Ensure the `Dockerfile` exposes your application port.
175
+
- Ensure the `Dockerfile` exposes your application port.
176
176
- For example, if you're using port 3000, the `Dockerfile` needs to include `EXPOSE 3000`.
177
177
- Ensure that the application is located in the `/app` directory within the Docker container.
178
178
- Ensure that the `Dockerfile` sets the working directory to `/app` with `WORKDIR "/app"`.
179
+
- For more information about Dockerfiles, see [Dockerfile reference](https://docs.docker.com/engine/reference/builder/).
179
180
180
181
## Swift projects
181
182
182
183
Codewind works with Swift projects that use the Kitura web framework.
183
184
184
185
Requirements:
185
186
186
-
-A `Dockerfile-tools` file is generated to build the project. Ensure the project can be built by using a `release` build configuration.
187
+
- Ensure the project can be built by using a `release` build configuration.
187
188
188
189
For example, you can build the project by using the command: `swift build --configuration release`.
189
-
- A `Dockerfile` file is generated. It runs the application that was built by using `Dockerfile-tools`.
190
190
191
191
## Generic Docker projects
192
192
@@ -200,6 +200,6 @@ For more information about Appsody and Appsody stacks, see [https://appsody.dev]
200
200
#### Defining environment variables for Appsody projects
201
201
Complete the following steps to define environment variables that take effect in an Appsody application:
202
202
1. Create an `env.properties` file in the root of the Appsody project.
203
-
-**Caution:** Do not commit the `env.properties` file to your source repository if it contains confidential information, such as passwords.
203
+
-**Caution:** Do not commit the `env.properties` file to your source repository if it contains confidential information, such as passwords. To avoid including sensitive information in your project, you can include the `env.properties` file as a reference, for more information, see [Referencing files external to a project](referencing-files.html).
204
204
2. Define your environment variables in this file by using the standard properties format. This format features one `name=value` entry per line.
205
205
3. If autobuild is enabled, Codewind automatically rebuilds the project to pick up the environment values. If autobuild is not enabled, new values take effect the next time you rebuild the project.
### Creating the Codewind workspace with a devfile
15
+
Codewind includes a ready-to-use devfile with its plug-ins.
16
+
1. Log in to Che. Che loads.
17
+
2. Go to **Workspaces** and click **Add Workspace**.
18
+
3. Click **Import Devfile**.
19
+
4. From **Source**, click **YAML**.
20
+
5. Go to the [https://raw.githubusercontent.com/eclipse/codewind-che-plugin/0.9.0/devfiles/0.9.0/devfile.yaml](https://raw.githubusercontent.com/eclipse/codewind-che-plugin/0.9.0/devfiles/0.9.0/devfile.yaml) link and copy and paste the contents into the YAML text box in your Che workspace.
21
+
6. Click **Create & Open**.
23
22
24
-
For other sample devfiles, see https://github.com/kabanero-io/codewind-templates/tree/master/devfiles.
23
+
For more sample devfiles, see [`codewind-templates/devfiles/`](https://github.com/kabanero-io/codewind-templates/tree/master/devfiles).
25
24
26
25
Next step: [Setup Tekton Pipelines](mdt-che-tektonpipelines.html)
Copy file name to clipboardExpand all lines: docs/_documentations/mdt-che-dockerregistries.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,8 @@ order: 20
10
10
parent: root
11
11
---
12
12
13
+
# Setting the Docker registry
13
14
14
-
### Setting the Docker registry
15
15
After creating a Codewind workspace, you must set the container registry to deploy your projects. 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.
16
16
17
17
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>
Copy file name to clipboardExpand all lines: docs/_documentations/mdt-che-installinfo.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,11 @@ type: document
9
9
---
10
10
11
11
# Installing Codewind for Eclipse Che
12
+
12
13
Install Che to use with Codewind or use Codewind with an existing Che installation.
13
14
14
-
### Prerequisites
15
+
## Prerequisites
16
+
15
17
1. Set up PersistentVolumes (PVs) that support both `ReadWriteOnce` (RWO) and `ReadWriteMany` (RWX) access modes and have a minimum of 1 Gi storage.
16
18
- One volume is required for Che, and two volumes are required for each Codewind workspace.
17
19
- For Network File System (NFS) shares, set 777 permissions for the exported folders and ownership of `nobody:nogroup`.
@@ -20,13 +22,14 @@ Install Che to use with Codewind or use Codewind with an existing Che installati
20
22
- Both Eclipse Che and Eclipse Codewind host Docker images at these locations.
21
23
- Many clusters have image policies that control which registries you can use to pull images. Check your cluster documentation and ensure that the cluster image pull policies permit both of these registries.
The fastest way to install Eclipse Che for Codewind is to use the `chectl` CLI. To install the `chectl` CLI tool, see [Installing the chectl management tool](https://www.eclipse.org/che/docs/che-7/installing-the-chectl-management-tool/).
27
30
28
31
After you install `chectl`, complete the following steps:
29
-
1. Download the [codewind-checluster.yaml](https://github.com/eclipse/codewind-che-plugin/blob/0.8.0/setup/install_che/che-operator/codewind-checluster.yaml) file.
32
+
1. Download the [codewind-checluster.yaml](https://github.com/eclipse/codewind-che-plugin/blob/0.9.0/setup/install_che/che-operator/codewind-checluster.yaml) file.
30
33
- 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`.
31
34
2. If you're installing Che on a Kubernetes platform other than OpenShift, determine your Ingress domain.
32
35
- Set the `spec.server.ingressDomain` field in the Che `.yaml` file to the Ingress domain.
@@ -35,15 +38,17 @@ After you install `chectl`, complete the following steps:
35
38
- On OpenShift, run the following command: `chectl server:start --platform=openshift --installer=operator --che-operator-cr-yaml=codewind-checluster.yaml --che-operator-image=quay.io/eclipse/che-operator:7.5.1`
36
39
- On Kubernetes, run the following command: `chectl server:start --platform=k8s --installer=operator --domain=<ingress-domain> --che-operator-cr-yaml=codewind-checluster.yaml --che-operator-image=quay.io/eclipse/che-operator:7.5.1`
37
40
38
-
### Updating an existing Che installation
41
+
## Updating an existing Che installation
42
+
39
43
If you already have a Che installation, you can update it for Codewind.
40
44
41
45
After creating the Codewind ClusterRole from the [Prerequisites](#prerequisites), run the following command, where `$NAMESPACE` is the namespace that your Che workspaces run in. By default, this namespace is `che`.
### Enabling privileged and root containers to run
50
+
## Enabling privileged and root containers to run
51
+
47
52
Codewind needs to run as privileged and as root because it builds container images. If your cluster is running OpenShift, run the following commands, where `<che namespace>` is the namespace into which you installed Che.
48
53
1. To enable privileged containers, enter `oc adm policy add-scc-to-user privileged system:serviceaccount:<che namespace>:che-workspace`.
49
54
2. To enable containers to run as root, enter `oc adm policy add-scc-to-user anyuid system:serviceaccount:<che namespace>:che-workspace`.
0 commit comments