@@ -14,19 +14,21 @@ command: curl -L -o cookieconsent.css https://cdn.jsdelivr.net/gh/orestbida/cook
14
14
command: curl -L -o cookieconsent.umd.js https://cdn.jsdelivr.net/gh/orestbida/[email protected] /dist/cookieconsent.umd.js
15
15
```
16
16
17
- Create ` .css ` and ` .js ` files for the training portal .
17
+ Create ` .html ` file to be embedded in head section of HTML files .
18
18
19
19
``` terminal:execute
20
- command: cat cookieconsent.css > training-portal.css
20
+ command: |
21
+ cat << EOF > training-portal.html
22
+ <link rel="stylesheet" href="/static/workshops/theme/cookieconsent.css">
23
+ <script type="text/javascript" src="/static/workshops/theme/cookieconsent.umd.js"></script>
24
+ EOF
21
25
```
22
26
23
- ``` terminal:execute
24
- command: cat cookieconsent.umd.js > training-portal.js
25
- ```
27
+ Create ` .js ` file defining configuration for CookieConsent package.
26
28
27
29
``` terminal:execute
28
30
command: |
29
- cat << EOF >> training-portal.js
31
+ cat << EOF > training-portal.js
30
32
/**
31
33
* All config. options available here:
32
34
* https://cookieconsent.orestbida.com/reference/configuration-reference.html
@@ -95,9 +97,11 @@ command: kubectl create ns educates-themes
95
97
```
96
98
97
99
``` terminal:execute
98
- command: kubectl create secret generic cookieconsent-theme -n educates-themes --from-file=training-portal.css --from-file=training-portal.js
100
+ command: kubectl create secret generic cookieconsent-theme -n educates-themes --from-file=cookieconsent.css --from-file=cookieconsent.umd.js --from-file= training-portal.html --from-file=training-portal.js
99
101
```
100
102
103
+ Create the Educates configuration including the website styling section to set the theme.
104
+
101
105
``` editor:append-lines-to-file
102
106
file: ~/config.yaml
103
107
text: |
@@ -132,14 +136,20 @@ text: |
132
136
namespace: educates-themes
133
137
```
134
138
139
+ Install Educates.
140
+
135
141
``` terminal:execute
136
142
command: educates admin cluster install --config config.yaml
137
143
```
138
144
145
+ Deploy a workshop.
146
+
139
147
``` terminal:execute
140
148
command: educates deploy-workshop -f https://github.com/vmware-tanzu-labs/lab-k8s-fundamentals/releases/latest/download/workshop.yaml
141
149
```
142
150
151
+ Access the training portal. Run a second time if the browser blocks popup the first time.
152
+
143
153
``` terminal:execute
144
154
command: educates browse-workshops
145
155
```
0 commit comments