Skip to content

Commit 3196d8d

Browse files
Update update_frontend_image.md
1 parent 2464393 commit 3196d8d

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

opsdocs/docs/common/3.0/update_frontend_image.md

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Update and custom frontend web page
22

33

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+
46
## Requirements
57

68
* `docker` package installed
@@ -11,8 +13,32 @@
1113
* Update abcdesktop default frontend web page to use your own.
1214
* Create new image for abcdesktop oc.nginx
1315

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+
```
1440

15-
## Update oc.nginx image
41+
## Create new image for abcdesktop oc.nginx
1642

1743
### Download ui.json file
1844

@@ -373,13 +399,11 @@ Update your own `abcdesktop.yaml` file to replace the default image `abcdesktopi
373399

374400
Replace :
375401

376-
- `imagePullPolicy: Always` by `imagePullPolicy: Never`
377402
- `image: abcdesktopio/oc.nginx:3.2` by `image: oc.nginx:acme`
378403

379404
```
380405
containers:
381406
- name: nginx
382-
imagePullPolicy: Never
383407
image: oc.nginx:acme
384408
```
385409

0 commit comments

Comments
 (0)