diff --git a/devfile.yaml b/devfile.yaml index 52103ea841d6ffc5fa8d97b7b6782e7b5d780deb..e2554c193b22b10ef77d99b43bb90a5c78a5ca6d 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