From 3196d8d0fd498b0a5e6cb0af488df0727004aabf Mon Sep 17 00:00:00 2001 From: Alexandre DEVELY <12896316+alexandredevely@users.noreply.github.com> Date: Fri, 8 Mar 2024 15:43:06 +0100 Subject: [PATCH] Update update_frontend_image.md --- .../docs/common/3.0/update_frontend_image.md | 30 +++++++++++++++++-- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/opsdocs/docs/common/3.0/update_frontend_image.md b/opsdocs/docs/common/3.0/update_frontend_image.md index 05de2dc05..bd2ac2f48 100644 --- a/opsdocs/docs/common/3.0/update_frontend_image.md +++ b/opsdocs/docs/common/3.0/update_frontend_image.md @@ -1,6 +1,8 @@ # Update and custom frontend web page +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. + ## Requirements * `docker` package installed @@ -11,8 +13,32 @@ * Update abcdesktop default frontend web page to use your own. * Create new image for abcdesktop oc.nginx +## Configure od.config to use the new color + + +In the od.config, add the env var `ABCDESKTOP_BG_COLOR` + +desktop.envlocal : { + 'X11LISTEN':'tcp', + 'WEBSOCKIFY_HEARTBEAT':'30', + 'TURN_PROTOCOL': 'tcp', + 'ABCDESKTOP_BG_COLOR': ā€˜#18974cā€™ } + +Then update the config map `abcdesktop-config` and restart deployment `pyos-od` + +``` +kubectl create -n abcdesktop configmap abcdesktop-config --from-file=od.config -o yaml --dry-run=client | kubectl replace -n abcdesktop -f - +kubectl rollout restart deployment pyos-od -n abcdesktop +``` + +You should read on stdout + +``` +configmap/abcdesktop-config replaced +deployment.apps/pyos-od restarted +``` -## Update oc.nginx image +## Create new image for abcdesktop oc.nginx ### Download ui.json file @@ -373,13 +399,11 @@ Update your own `abcdesktop.yaml` file to replace the default image `abcdesktopi Replace : -- `imagePullPolicy: Always` by `imagePullPolicy: Never` - `image: abcdesktopio/oc.nginx:3.2` by `image: oc.nginx:acme` ``` containers: - name: nginx - imagePullPolicy: Never image: oc.nginx:acme ```