Skip to content

Commit eea6888

Browse files
committed
moving track to OpenShift 4-16
1 parent 79e7d07 commit eea6888

File tree

5 files changed

+33
-19
lines changed

5 files changed

+33
-19
lines changed

instruqt-tracks/developing-with-node-js-getting-started/01-create-an-express-application/assignment.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,17 @@ notes:
2121
* Add logging and health checks
2222
* Deploy your application to Openshift
2323
tabs:
24-
- title: Terminal 1
24+
- id: nlyvk1lujwkx
25+
title: Terminal 1
2526
type: terminal
2627
hostname: crc
27-
- title: Visual Editor
28+
- id: wcrkpzhzseop
29+
title: Visual Editor
2830
type: code
2931
hostname: crc
3032
path: /root/projects/nodejs/nodeserver
31-
- title: Terminal 2
33+
- id: mvwapgaeq4xz
34+
title: Terminal 2
3235
type: terminal
3336
hostname: crc
3437
difficulty: basic
@@ -112,7 +115,7 @@ Now, let’s start creating our server.
112115
`Step 7:` Run the following command in the **Terminal 1** window to start the application.
113116

114117
```
115-
npm start
118+
PORT=8081 npm start
116119
```
117120

118121
Once the application is started, you should see a similar output in your console:
@@ -128,7 +131,7 @@ Once the application is started, you should see a similar output in your console
128131
`Step 8:` Run the following command in the **Terminal 2** window that appears:
129132

130133
```
131-
curl -w "\n" localhost:8080/
134+
curl -w "\n" localhost:8081/
132135
```
133136

134137
You'll get the following output:

instruqt-tracks/developing-with-node-js-getting-started/02-join-red-hat-developer-portal/assignment.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ type: challenge
55
title: Join Red Hat Developer at no cost
66
teaser: Join Red Hat Developer at no cost
77
tabs:
8-
- title: Red Hat Login
8+
- id: nkyai6cxrmz1
9+
title: Red Hat Login
910
type: browser
1011
hostname: rhd-login-3882383
1112
difficulty: ""

instruqt-tracks/developing-with-node-js-getting-started/03-add-health-checks/assignment.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ notes:
88
- type: text
99
contents: Add Health Checks to your Application
1010
tabs:
11-
- title: Terminal 1
11+
- id: u6kmdd8qrmjw
12+
title: Terminal 1
1213
type: terminal
1314
hostname: crc
14-
- title: Visual Editor
15+
- id: lffbeezy4cct
16+
title: Visual Editor
1517
type: code
1618
hostname: crc
1719
path: /root/projects/nodejs/nodeserver
18-
- title: Terminal 2
20+
- id: ixywykeap1vr
21+
title: Terminal 2
1922
type: terminal
2023
hostname: crc
2124
difficulty: basic
@@ -50,15 +53,15 @@ cd /root/projects/nodejs/nodeserver
5053
```
5154

5255
```sh
53-
npm start
56+
PORT=8081 npm start
5457
```
5558

5659
----
5760

5861
`Step 3:` Run the following command in the **Terminal 2** window that appears to check that your `livenessProbe` Health Check endpoint is running:
5962

6063
```
61-
curl -w "\n" localhost:8080/live
64+
curl -w "\n" localhost:8081/live
6265
```
6366

6467
You'll get the following output:

instruqt-tracks/developing-with-node-js-getting-started/04-deploy-to-openshift/assignment.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,23 @@ notes:
88
- type: text
99
contents: Deploy the Node.js Application to Openshift
1010
tabs:
11-
- title: Terminal 1
11+
- id: 0kxd212jrpag
12+
title: Terminal 1
1213
type: terminal
1314
hostname: crc
14-
- title: Visual Editor
15+
- id: aidyhneaivle
16+
title: Visual Editor
1517
type: code
1618
hostname: crc
1719
path: /root/projects/nodejs/nodeserver
18-
- title: Terminal 2
20+
- id: 8dutnlvr06al
21+
title: Terminal 2
1922
type: terminal
2023
hostname: crc
21-
- title: Web Console
24+
- id: e4r8mcbhgjjt
25+
title: Web Console
2226
type: website
23-
url: https://console-openshift-console.crc-rwwzd-master-0.crc.${_SANDBOX_ID}.instruqt.io
27+
url: https://console-openshift-console.crc.${_SANDBOX_ID}.instruqt.io
2428
new_window: true
2529
difficulty: basic
2630
timelimit: 600
@@ -176,7 +180,7 @@ You can access the application using `curl` once again.
176180
`Step 9:` Run the following command in **Terminal 1** to get the URL to the applications endpoint and assign it to the environment variable named `APP_ROUTE`.
177181

178182
```bash
179-
APP_ROUTE=`oc get route nodeserver -n nodejs -o jsonpath='{"http://"}{.spec.host}{"/"}{"\n"}'`
183+
APP_ROUTE=`oc get route nodeserver -n nodejs -o jsonpath='{"https://"}{.spec.host}{"/"}{"\n"}'`
180184
```
181185

182186
----

instruqt-tracks/developing-with-node-js-getting-started/track.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,15 @@ developers:
3333
3434
idle_timeout: 400
3535
timelimit: 3600
36-
sandbox_preset: openshift-4-12
36+
sandbox_preset: openshift-4-16
3737
lab_config:
3838
overlay: false
3939
width: 33
4040
position: right
4141
feedback_recap_enabled: true
4242
loadingMessages: true
43+
lab_v2: true
4344
hideStopButton: false
44-
checksum: "9957135713963853641"
45+
default_layout: AssignmentRight
46+
default_layout_sidebar_size: 33
47+
checksum: "17234855095719418283"

0 commit comments

Comments
 (0)