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

Commit 71ff214

Browse files
committed
reordered content, modified instructions, emboldened text
Signed-off-by: Jacob Berger <jacob.berger@ibm.com>
1 parent 2cb79fb commit 71ff214

File tree

1 file changed

+36
-38
lines changed

1 file changed

+36
-38
lines changed

docs/_guides/codewind-crw-quick-guide.md

Lines changed: 36 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
layout: guide
3-
summary-title: "Codewind in CodeReady Workspaces"
3+
summary_title: "Codewind in CodeReady Workspaces"
44
title: "Getting Started with Codewind in CodeReady Workspaces"
55
categories: guides
6-
guide_description: "Take advantage of Codewind's tools to help build high quality cloud native applications regardless of which IDE or language you use."
6+
guide_description: "Use Codewind in CodeReady Workspaces to build high quality cloud native applications."
77
permalink: codewind-crw-quick-guide.html
88
duration: 10 minutes
99
tags: Codewind, CodeReady Workspaces, Openshift, Kubernetes, containers, microservice
@@ -17,21 +17,21 @@ tags: Codewind, CodeReady Workspaces, Openshift, Kubernetes, containers, microse
1717
Use Eclipse Codewind to develop microservice applications from application stacks in an integrated developer environment (IDE). CodeReady Workspaces provides a containerized IDE for cloud native application development on an OpenShift cluster.
1818

1919
## Developing with CodeReady Workspaces
20-
CodeReady Workspaces uses Kubernetes and containers to provide a preconfigured environment. Use CodeReady Workspaces to create, build, and test your code in OpenShift containers but feel like you are working on an IDE on your local computer.
20+
CodeReady Workspaces uses Kubernetes and containers to provide a preconfigured environment. Use CodeReady Workspaces to create, build, and test your code in OpenShift containers but feel like you are working on an IDE on your local machine.
2121

2222
### Prerequisite
23-
CodeReady Workspaces requires at least two 1Gi ReadWriteOnce (RWO) persistent volumes on the cluster to install and a 1Gi RWO volume for each created workspace.
23+
CodeReady Workspaces require at least two 5Gi ReadWriteOnce (RWO) persistent volumes on the cluster to install and a 5Gi RWO volume for each created workspace.
2424

25-
Each Codewind workspace also requires at least on 1Gi ReadWriteMany (RWX) persistent volume.
25+
Each Codewind workspace also requires at least on 5Gi ReadWriteMany (RWX) persistent volume.
26+
27+
Before you can use Codewind with CodeReady Workspaces, apply the Codewind cluster role with `oc apply -f`.
2628

2729
### Installing CodeReady Workspaces
2830
1. Subscribe to the CodeReady Workspaces operator then install it.
29-
* To manually install CodeReady Workspaces, apply the CodeReady Workspaces OperatorHub subscription.
30-
2. After the CodeReady Workspaces operator is installed, create the CheCluster resources.
31-
* If you have not set up an auth provider, set `openShiftoAuth` to `false`.
31+
* If you did not set up an auth provider, set `openShiftoAuth` to `false`.
3232
* To enable HTTPS, set `tlsSupport` to `true`.
3333
* If you use a self-signed certificate, set `selfSignedCert` to `true`.
34-
3. If you install Codewind alongside CodeReady Workspaces, use the following yaml:
34+
2. Use the following yaml:
3535
```yaml
3636
apiVersion: org.eclipse.che/v1
3737
kind: CheCluster
@@ -70,63 +70,61 @@ spec:
7070
    preCreateSubPaths: true
7171
```
7272
* To manually install Codewind alongside Codewind Workspaces, save this yaml to a disk and run `oc apply -f <yaml>`.
73-
4. CodeReady Workspaces now installs and you can access the CodeReady Workspaces URL and Red Hat SSO Admin Console URL.
73+
3. CodeReady Workspaces now installs and you can access the CodeReady Workspaces URL and Red Hat SSO Admin Console URL.
7474

7575
### Setting up Codewind
76-
Before you can use Codewind with CodeReady Workspaces or Che, complete the following steps, either before or after you install Codewind:
77-
78-
1. Apply the Codewind cluster role with `oc apply -f`.
79-
2. Because of its dependency on `buildah`, Codewind needs to run as root and privileged. To enable Codewind, run the following commands:
76+
Because of its dependency on `buildah`, Codewind needs to run as root and privileged. To enable Codewind, run the following commands:
8077
* `oc adm policy add-scc-to-user anyuid system:serviceaccounts:<namespace>:che-workspace`
8178
* `oc adm policy add-scc-to-user privileged system:serviceaccounts:<namespace>:che-workspace`
8279

8380
CodeReady Workspaces starts Codewind and installs the Codewind plug-ins. This process might take a couple of minutes for all of the necessary components to be pulled and started.
8481

8582
### Configuring Codewind to use application stacks
86-
Configure Codewind to use Appsody templates so you can focus exclusively on your code. These templates include an Eclipse MicroProfile stack that you can use to follow this guide. Complete the following steps to select the Appsody templates:
83+
Configure Codewind to use Appsody templates so you can focus exclusively on your code. Complete the following steps to select the Appsody templates:
8784

88-
1. Under the Explorer pane, select `Codewind`.
89-
2. Right-click `Local`.
90-
3. Select `Template Source Manager`.
91-
4. Enable `Appsody Stacks - incubator` and `Default templates`.
85+
1. Under the Explorer pane, select **Codewind**.
86+
2. Right-click **Local**.
87+
3. Select **Template Source Manager**.
88+
4. Enable **Appsody Stacks - incubator** and **Default templates**.
9289

9390
After you configured Codewind to use Appsody templates, continue to develop your microservice within Codewind.
9491

9592
If your organization uses customized application stacks and gives you a URL that points to an `index.json` file, you can add it to Codewind:
9693

97-
1. Return to `Codewind` and right-click `Local`.
98-
2. Select `Template Source Manager`.
99-
3. Click `Add New +` to add your URL.
94+
1. Return to **Codewind** and right-click **Local**.
95+
2. Select **Template Source Manager**.
96+
3. Click **Add New +** to add your URL.
10097
4. Add your URL in the pop-up window and save your changes.
10198

10299
### Creating an Appsody project
103100
Throughout the application lifestyle, Appsody helps you develop containerized applications and maximize containers curated for your usage. If you want more context about Appsody, see [Appsody welcome page](https://appsody.dev/docs).
104101

105-
1. Under the Explorer pane, select `Codewind`.
106-
2. Expand `Codewind` by clicking the drop-down arrow.
107-
3. Hover over the `Projects` entry underneath Codewind in the Explorer pane, and press the `+` icon to create a project.
102+
1. Under the Explorer pane, select **Codewind**.
103+
2. Expand **Codewind** by clicking the drop-down arrow.
104+
3. Hover over the **Projects** entry underneath Codewind in the Explorer pane, and press the **+** icon to create a project.
108105
* **Note:** Make sure that Docker is running. Otherwise, you get an error.
109-
4. Choose the `Appsody Open Liberty default template (Appsody Stacks - incubator)`.
110-
5. Name your project `appsody-calculator`.
111-
* If you don't see Appsody templates, find and select `Template Source Manager` and enable `Appsody Stacks - incubator`.
106+
4. Choose the **Appsody Open Liberty default template (Appsody Stacks - incubator)**.
107+
5. Name your project **appsody-calculator**.
108+
* If you don't see Appsody templates, find and select **Template Source Manager** and enable **Appsody Stacks - incubator**.
112109
* The templates are refreshed, and the Appsody templates are available.
113-
6. Press `Enter`.
114-
* To monitor your project's progress, right-click your project, and select `Show all logs`. Then, an `Output` tab is displayed where you see your project's build logs.
110+
6. Press **Enter**.
111+
* To monitor your project's progress, right-click your project, and select **Show all logs**. Then, an **Output** tab is displayed where you see your project's build logs.
115112

116113
Your project is complete when you see that your application status is running and your build status is successful.
117114

118115
### Accessing the application endpoint in a browser
119-
1. Return to your project under the Explorer pane.
120-
2. Select the Open App icon next to your project's name, or right-click your project and select `Open App`.
116+
1. Return to your project under the **Explorer** pane.
117+
2. Select the Open App icon next to your project's name, or right-click your project and select **Open App**.
121118

122119
Your application is now opened in a browser, showing the welcome to your Appsody microservice page.
123120

124121
### Adding a REST service to your application
125-
1. Go to your project's workspace under the Explorer tab.
126-
2. Go to `src->main->java->dev->appsody->starter`.
127-
3. Right-click `starter` and select `New File`.
128-
4. Create a file, name it `Calculator.java`, and press `Enter`. This file is your JAX-RS resource.
129-
5. Populate the file with the following code and then **save** the file:
122+
1. Go to your project's workspace under the **Explorer** pane.
123+
2. Go to `src>main>java>dev>appsody>starter`.
124+
3. Right-click **starter** and select **New File**.
125+
4. Create a file, name it `Calculator.java`, and press **Enter**. This file is your JAX-RS resource.
126+
5. Before you input any code, make sure that the file is empty.
127+
6. Populate the file with the following code and then **save** the file:
130128

131129
```java
132130
package dev.appsody.starter;
@@ -174,7 +172,7 @@ public class Calculator extends Application {
174172
}
175173
```
176174

177-
Any changes that you make to your code are automatically built and redeployed by Codewind and you can view them in your browser.
175+
Any changes that you make to your code are automatically built and redeployed by Codewind, and you can view them in your browser.
178176

179177
### Working with the example calculator microservice
180178
You now can work with the example calculator microservice.

0 commit comments

Comments
 (0)