|
1 | 1 | # Update and custom frontend web page
|
2 | 2 |
|
3 | 3 |
|
| 4 | +abcdesktop uses a front HTML web site and X11 Linux application. So, to get a new graphic design, you have to define it twice in HTML (CSS) files and in X11 config. |
| 5 | + |
4 | 6 | ## Requirements
|
5 | 7 |
|
6 | 8 | * `docker` package installed
|
|
11 | 13 | * Update abcdesktop default frontend web page to use your own.
|
12 | 14 | * Create new image for abcdesktop oc.nginx
|
13 | 15 |
|
| 16 | +## Configure od.config to use the new color |
| 17 | + |
| 18 | + |
| 19 | +In the od.config, add the env var `ABCDESKTOP_BG_COLOR` |
| 20 | + |
| 21 | +desktop.envlocal : { |
| 22 | + 'X11LISTEN':'tcp', |
| 23 | + 'WEBSOCKIFY_HEARTBEAT':'30', |
| 24 | + 'TURN_PROTOCOL': 'tcp', |
| 25 | + 'ABCDESKTOP_BG_COLOR': ‘#18974c’ } |
| 26 | + |
| 27 | +Then update the config map `abcdesktop-config` and restart deployment `pyos-od` |
| 28 | + |
| 29 | +``` |
| 30 | +kubectl create -n abcdesktop configmap abcdesktop-config --from-file=od.config -o yaml --dry-run=client | kubectl replace -n abcdesktop -f - |
| 31 | +kubectl rollout restart deployment pyos-od -n abcdesktop |
| 32 | +``` |
| 33 | + |
| 34 | +You should read on stdout |
| 35 | + |
| 36 | +``` |
| 37 | +configmap/abcdesktop-config replaced |
| 38 | +deployment.apps/pyos-od restarted |
| 39 | +``` |
14 | 40 |
|
15 |
| -## Update oc.nginx image |
| 41 | +## Create new image for abcdesktop oc.nginx |
16 | 42 |
|
17 | 43 | ### Download ui.json file
|
18 | 44 |
|
@@ -373,13 +399,11 @@ Update your own `abcdesktop.yaml` file to replace the default image `abcdesktopi
|
373 | 399 |
|
374 | 400 | Replace :
|
375 | 401 |
|
376 |
| -- `imagePullPolicy: Always` by `imagePullPolicy: Never` |
377 | 402 | - `image: abcdesktopio/oc.nginx:3.2` by `image: oc.nginx:acme`
|
378 | 403 |
|
379 | 404 | ```
|
380 | 405 | containers:
|
381 | 406 | - name: nginx
|
382 |
| - imagePullPolicy: Never |
383 | 407 | image: oc.nginx:acme
|
384 | 408 | ```
|
385 | 409 |
|
|
0 commit comments