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

Commit 1c69fbb

Browse files
committed
added new instructions and corrected yaml file
Signed-off-by: Jacob Berger <jacob.berger@ibm.com>
1 parent 25fb47b commit 1c69fbb

File tree

1 file changed

+53
-36
lines changed

1 file changed

+53
-36
lines changed

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

Lines changed: 53 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ Each Codewind workspace also requires at least on 5Gi ReadWriteMany (RWX) persis
2727
Before you can use Codewind with CodeReady Workspaces, apply the Codewind cluster role with `oc apply -f`.
2828

2929
### Installing CodeReady Workspaces
30-
1\. Subscribe to the CodeReady Workspaces OperatorHub then install CodeReady Workspaces:
30+
1\. Log in to your OpenShift cluster.
31+
32+
2\. From the sidebar, click **Operators** then **OperatorHub**.
33+
34+
3\. Search for `CodeReady Workspaces`.
35+
36+
4\. Select **Red Hat CodeReady Workspaces** and click **Install**:
3137

3238
![Subscribe to OperatorHub](./images/codereadyworkspaces-images/CRW-OperatorHub.png){:width="1684"}.
3339

@@ -37,47 +43,58 @@ Before you can use Codewind with CodeReady Workspaces, apply the Codewind cluste
3743
* To enable HTTPS, set `tlsSupport` to `true`.
3844
* If you use a self-signed certificate, set `selfSignedCert` to `true`.
3945

40-
2\. Use the following yaml:
46+
After you install the operator, continue to install CodeReady Workspaces:
47+
48+
1\. From the OpenShift dashboard, go to `Operators`>`Installed Operators`.
49+
50+
2\. Select **CodeReady Workspaces**.
51+
52+
3\. Select the **CodeReady Workspaces** cluster then **Create CheCluster**.
53+
54+
4\. Configure the fields, like `tlsSupport`, as needed.
55+
56+
5\. Copy and paste the following yaml into the provided text box:
57+
4158
```yaml
4259
apiVersion: org.eclipse.che/v1
4360
kind: CheCluster
4461
metadata:
45-
  name: codeready-workspaces
62+
name: codeready-workspaces
4663
spec:
47-
  server:
48-
    cheImageTag: ''
49-
    cheFlavor: codeready
50-
    devfileRegistryImage: ''
51-
    pluginRegistryImage: ''
52-
    tlsSupport: false
53-
    selfSignedCert: false
54-
    cheWorkspaceClusterRole: 'eclipse-codewind'
55-
    customCheProperties:
56-
      CHE_INFRA_KUBERNETES_WORKSPACE__START__TIMEOUT__MIN: "15"
57-
      CHE_LIMITS_WORKSPACE_IDLE_TIMEOUT: "0"
58-
      CHE_WORKSPACE_PLUGIN__BROKER_WAIT__TIMEOUT__MIN: "15"
59-
  database:
60-
    externalDb: false
61-
    chePostgresHostName: ''
62-
    chePostgresPort: ''
63-
    chePostgresUser: ''
64-
    chePostgresPassword: ''
65-
    chePostgresDb: ''
66-
  auth:
67-
    openShiftoAuth: false
68-
    identityProviderImage: ''
69-
    externalIdentityProvider: false
70-
    identityProviderURL: ''
71-
    identityProviderRealm: ''
72-
    identityProviderClientId: ''
73-
  storage:
74-
    pvcStrategy: per-workspace
75-
    pvcClaimSize: 1Gi
76-
    preCreateSubPaths: true
64+
server:
65+
cheImageTag: ''
66+
cheFlavor: codeready
67+
devfileRegistryImage: ''
68+
pluginRegistryImage: ''
69+
tlsSupport: true
70+
selfSignedCert: true
71+
cheWorkspaceClusterRole: 'eclipse-codewind'
72+
customCheProperties:
73+
CHE_INFRA_KUBERNETES_WORKSPACE__START__TIMEOUT__MIN: "15"
74+
CHE_LIMITS_WORKSPACE_IDLE_TIMEOUT: "0"
75+
CHE_WORKSPACE_PLUGIN__BROKER_WAIT__TIMEOUT__MIN: "15"
76+
database:
77+
externalDb: false
78+
chePostgresHostName: ''
79+
chePostgresPort: ''
80+
chePostgresUser: ''
81+
chePostgresPassword: ''
82+
chePostgresDb: ''
83+
auth:
84+
openShiftoAuth: false
85+
identityProviderImage: ''
86+
externalIdentityProvider: false
87+
identityProviderURL: ''
88+
identityProviderRealm: ''
89+
identityProviderClientId: ''
90+
storage:
91+
pvcStrategy: per-workspace
92+
pvcClaimSize: 1Gi
93+
preCreateSubPaths: true
7794
```
78-
* To manually install Codewind along with Codewind Workspaces, save this yaml to a disk and run `oc apply -f <yaml>`.
95+
* To manually install Codewind with CodeReady Workspaces, save this yaml to a disk and run `oc apply -f <yaml>`.
7996

80-
3\. CodeReady Workspaces now installs and you can access the CodeReady Workspaces URL and Red Hat SSO Admin Console URL:
97+
6\. CodeReady Workspaces now installs and you can access the CodeReady Workspaces URL and Red Hat SSO Admin Console URL:
8198

8299
![Install CheCluster](./images/codereadyworkspaces-images/CRW-CheCluster.png){:width="1482"}.
83100

@@ -129,7 +146,7 @@ Your application is now opened in a browser, showing the welcome to your Appsody
129146

130147
### Adding a REST service to your application
131148
1. Go to your project's workspace under the **Explorer** pane.
132-
2. Go to `src>main>java>dev>appsody>starter`.
149+
2. Go to `src`>`main`>`java`>`dev`>`appsody`>`starter`.
133150
3. Right-click **starter** and select **New File**.
134151
4. Create a file, name it `Calculator.java`, and press **Enter**. This file is your JAX-RS resource.
135152
5. Before you input any code, make sure that the file is empty.

0 commit comments

Comments
 (0)