From 5d36d535adb31162234a421f5421dd29c7939eb2 Mon Sep 17 00:00:00 2001 From: Adrian Stoica <stoica@ntnu.no> Date: Fri, 15 Sep 2023 19:00:24 +0200 Subject: [PATCH] conf(che): start vnc from devfile --- devfile.yaml | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index 52103ea..e2554c1 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -1,8 +1,8 @@ schemaVersion: 2.1.0 metadata: - name: testvnc + name: todolist components: - - name: testvnc + - name: todolist container: image: adrianstoica/it1901:latest memoryLimit: 3Gi @@ -12,10 +12,30 @@ components: protocol: http targetPort: 6080 - exposure: public - name: 6900-tcp + name: 5900-tcp protocol: http - targetPort: 6900 + targetPort: 5900 - exposure: public - name: 6901-tcp + name: 5901-tcp protocol: http - targetPort: 6901 \ No newline at end of file + targetPort: 5901 + - exposure: public + name: 8080-tcp + protocol: http + targetPort: 8080 +commands: + - id: vncserver + exec: + component: todolist + commandLine: vncserver -SecurityTypes None :0 + label: start vnc server + - id: screenlock + exec: + component: todolist + commandLine: xset s 0 0 + label: screen lock disable + - id: novnc + exec: + component: todolist + commandLine: /opt/novnc/utils/novnc_proxy --vnc localhost:5900 --listen 6080 & + label: start vnc web interface -- GitLab