()
| 123 | |
| 124 | |
| 125 | def start_vnc_web() -> None: |
| 126 | if convert_str_to_bool(os.getenv(ENV.WEB_VNC)): |
| 127 | vnc_port = get_env_value_or_raise(ENV.VNC_PORT) |
| 128 | vnc_web_port = get_env_value_or_raise(ENV.WEB_VNC_PORT) |
| 129 | cmd = "/opt/noVNC/utils/novnc_proxy" |
| 130 | args = f"--vnc localhost:{vnc_port} localhost:{vnc_web_port}" |
| 131 | vnc_web = Application("vnc_web", cmd, args, False) |
| 132 | vnc_web.start() |
| 133 | else: |
| 134 | logger.info("env WEB_VNC cannot be found, VNC_WEB is not started!") |
| 135 | |
| 136 | |
| 137 | @cli.command() |
no test coverage detected