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

Commit fad9461

Browse files
authored
Merge branch 'master' into jcberger_1850_configpro
2 parents 564be83 + e27b6e8 commit fad9461

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+279
-119
lines changed

docs/_config.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ email: codewind-dev@eclipse.org
33
description: Eclipse Codewind
44
keywords: Eclipse, docker, container, devops, applications, development, iteration, microservices, cloud, services, rapid, integrated
55
baseurl: "/codewind"
6-
twitter_username: jekyllrb
7-
github_username: jekyll
8-
96

107
# Build settings
118
markdown: kramdown

docs/_data/docstoc.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- title: 'Overview'
1+
- title: 'What is Codewind?'
22
url: overview.html
33

44
- title: 'Getting started'
@@ -30,14 +30,10 @@
3030
url: mdt-che-createcodewindworkspace.html
3131
- title: 'Setup to use Tekton Pipelines'
3232
url: mdt-che-tektonpipelines.html
33-
- title: 'Set Docker registries'
34-
url: mdt-che-dockerregistries.html
3533
- title: 'Using Codewind in Theia'
3634
url: mdt-che-usingtheia.html
3735
- title: 'OpenShift Do (odo) support in Codewind'
3836
url: mdt-che-odo-support.html
39-
- title: 'Docker Registry Guidance'
40-
url: image-registry-credentials.html
4137
- title: 'Using the OpenShift Registry'
4238
url: openshiftregistry.html
4339
- title: 'Support for multiple users'
@@ -46,6 +42,10 @@
4642
url: viewkibanalogs.html
4743
- title: 'Uninstalling Codewind for Eclipse Che'
4844
url: mdt-che-uninstall.html
45+
- title: 'IntelliJ'
46+
children:
47+
- title: 'Installing Codewind for IntelliJ'
48+
url: mdt-intellij-getting-started.html
4949

5050
- title: 'Local to remote development'
5151
children:
@@ -67,14 +67,14 @@
6767

6868
- title: 'Developing projects'
6969
children:
70-
- title: 'Using the project view'
71-
url: projectview.html
7270
- title: 'Checking the application and build statuses'
7371
url: checkingstatuses.html
7472
- title: 'Importing existing projects'
7573
url: importing-existing-projects.html
7674
- title: 'Project settings'
7775
url: project-settings.html
76+
- title: 'Referencing files external to a project'
77+
url: referencing-files.html
7878

7979
- title: 'Performance monitoring'
8080
children:

docs/_documentations/appmetrics.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Application Metrics is available in Java, Node.js, and Swift. You can monitor th
2525

2626
## Accessing Application Metrics
2727

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.
2929

3030
## Enabling Application Metrics
3131

@@ -45,35 +45,35 @@ View these metrics to learn if your application is performing as intended. An ap
4545

4646
## Clicking the **Run load** button
4747

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.
4949

5050
## Viewing metrics information in the **Summary** tab
5151

5252
View a summary of the information from the performance metrics graphs that you saw in the **Dashboard** tab.
5353
* **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.
5454
* **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.
5656

5757
## Viewing the graph in the **Profiling** tab
5858

5959
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.
6060

6161
## Profiling Data Support
6262

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.
6464

6565
- 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.
6666
- Run the load run for a minimum of 45 seconds for enough profiling data to be gathered to generate the `profiling.json` file.
6767
- You can configure the load run time in the `config.json` file in the `load-test` directory. The default time is 2 minutes.
6868
- 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.
6969

7070
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.
7272
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.
7373

7474
To enable or disable the profile highlighting in the code, access the profiling in one of the following ways:
7575
- 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`.
7777
- Toggle the `Microprofile Profiling: Show Profiling` setting in the extensions settings.
7878

7979
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).

docs/_documentations/importing-existing-projects.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Configure your `pom.xml` file as follows:
122122

123123
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.
124124

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.
126126

127127
**Dockerfile-lang**
128128

@@ -146,7 +146,7 @@ Requirements:
146146
- The `artifactId` value in the `pom.xml` file must match the project name.
147147
- Configure the project to build with Maven and produce a exectutable `.jar` file.
148148
- 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.
150150

151151
Example:
152152

@@ -172,21 +172,21 @@ Your `package.json` must meet the following requirements. For an example of a go
172172
- If a problem occurs with either script, the error appears in the Application Logs view in Codewind.
173173

174174
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.
176176
- For example, if you're using port 3000, the `Dockerfile` needs to include `EXPOSE 3000`.
177177
- Ensure that the application is located in the `/app` directory within the Docker container.
178178
- 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/).
179180

180181
## Swift projects
181182

182183
Codewind works with Swift projects that use the Kitura web framework.
183184

184185
Requirements:
185186

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.
187188

188189
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`.
190190

191191
## Generic Docker projects
192192

@@ -200,6 +200,6 @@ For more information about Appsody and Appsody stacks, see [https://appsody.dev]
200200
#### Defining environment variables for Appsody projects
201201
Complete the following steps to define environment variables that take effect in an Appsody application:
202202
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).
204204
2. Define your environment variables in this file by using the standard properties format. This format features one `name=value` entry per line.
205205
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.
Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
---
22
layout: docs
3-
title: Installing Codewind on the Cloud
4-
description: Installing Codewind on the Cloud
5-
keywords: build, deploy, IBM Cloud Private, install, installing, installation, chart, Helm, develop, cloud, public cloud, services, command line, cli, command, start, stop, update, open, delete, options, operation, devops, OpenShift, OKD
3+
title: Creating a Codewind workspace in Che
4+
description: Creating a Codewind workspace in Che
5+
keywords: build, deploy, install, installing, installation, chart, Helm, develop, cloud, public cloud, services, command line, cli, command, start, stop, update, open, delete, options, operation, devops
66
duration: 1 minute
77
permalink: mdt-che-createcodewindworkspace
88
type: document
9-
order: 20
10-
parent: root
119
---
1210

13-
### Creating the Codewind workspace with a Devfile
14-
The general format for creating a Che workspace via a factory is:
15-
```
16-
http://<che ingress domain>/f?url=<hosted devfile URL>
17-
```
11+
# Creating a Codewind workspace in Che
12+
Use Codewind with Che workspaces to develop your application in a single location.
1813

19-
Codewind includes a ready-to-use devfile with its plug-ins. Enter the following URL to create a workspace from the devfile:
20-
```
21-
http://<che ingress domain>/f?url=https://raw.githubusercontent.com/eclipse/codewind-che-plugin/0.8.0/devfiles/0.8.0/devfile.yaml
22-
```
14+
### 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**.
2322

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).
2524

2625
Next step: [Setup Tekton Pipelines](mdt-che-tektonpipelines.html)
27-
28-

docs/_documentations/mdt-che-dockerregistries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ order: 20
1010
parent: root
1111
---
1212

13+
# Setting the Docker registry
1314

14-
### Setting the Docker registry
1515
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.
1616

1717
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>

docs/_documentations/mdt-che-installinfo.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ type: document
99
---
1010

1111
# Installing Codewind for Eclipse Che
12+
1213
Install Che to use with Codewind or use Codewind with an existing Che installation.
1314

14-
### Prerequisites
15+
## Prerequisites
16+
1517
1. Set up PersistentVolumes (PVs) that support both `ReadWriteOnce` (RWO) and `ReadWriteMany` (RWX) access modes and have a minimum of 1 Gi storage.
1618
- One volume is required for Che, and two volumes are required for each Codewind workspace.
1719
- 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
2022
- Both Eclipse Che and Eclipse Codewind host Docker images at these locations.
2123
- 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.
2224
3. Set up the ClusterRole for Codewind:
23-
`kubectl apply -f https://raw.githubusercontent.com/eclipse/codewind-che-plugin/0.8.0/setup/install_che/codewind-clusterrole.yaml`
25+
`kubectl apply -f https://raw.githubusercontent.com/eclipse/codewind-che-plugin/0.9.0/setup/install_che/codewind-clusterrole.yaml`
26+
27+
## Installing Che with chectl
2428

25-
### Installing Che with chectl
2629
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/).
2730

2831
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.
3033
- 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`.
3134
2. If you're installing Che on a Kubernetes platform other than OpenShift, determine your Ingress domain.
3235
- 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:
3538
- 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`
3639
- 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`
3740

38-
### Updating an existing Che installation
41+
## Updating an existing Che installation
42+
3943
If you already have a Che installation, you can update it for Codewind.
4044

4145
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`.
4246
```
43-
kubectl apply -f https://raw.githubusercontent.com/eclipse/codewind-che-plugin/0.8.0/setup/install_che/codewind-rolebinding.yaml -n $NAMESPACE
47+
kubectl apply -f https://raw.githubusercontent.com/eclipse/codewind-che-plugin/0.9.0/setup/install_che/codewind-rolebinding.yaml -n $NAMESPACE
4448
```
4549

46-
### Enabling privileged and root containers to run
50+
## Enabling privileged and root containers to run
51+
4752
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.
4853
1. To enable privileged containers, enter `oc adm policy add-scc-to-user privileged system:serviceaccount:<che namespace>:che-workspace`.
4954
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

Comments
 (0)