This repository contains some basic images with common tools for debugging k8s workloads. The images are based on popular Linux distros (Fedora, AlmaLinux, Debian, Alpine).
They are using base these distros' official images on Dockerhub as base images. Tools added on top of the images are:
wget, curl, tar, whichnmap, traceroutehtop, procpsgdbwhichgit, vim
Build the Debian 12 desktop image with:
podman-hpc build -f container/debian-12-vnc-novnc.Dockerfile -t ghcr.io/dingp/debian:12-vnc-novnc .Run it with a helper script:
scripts/run-vnc-novnc.pyRun it with the default NERSC-oriented YAML config:
scripts/run-vnc-novnc.py --config scripts/run-vnc-novnc.yamlThe helper generates a one-time VNC password, chooses a random localhost noVNC port, and does not expose the VNC server port by default. It prints the noVNC URL and password before starting the container. A shell version is also available at scripts/run-vnc-novnc.sh.
See RUN_VNC_NOVNC.md for full usage details.
The helper can be configured with environment variables:
IMAGE, defaultghcr.io/dingp/debian:12-vnc-novncHOST_NOVNC_ADDR, default127.0.0.1HOST_NOVNC_PORT, default randomJUPYTER_PROXY_BASE_URL, defaulthttps://jupyter.nersc.govJUPYTER_PROXY_HOST, defaultjupyter.nersc.govJUPYTER_PROXY_HTTPS_PORT, default443JUPYTER_PROXY_PREFIX, default toJUPYTERHUB_SERVICE_PREFIXJUPYTER_PROXY_USER, default toUSERJUPYTER_PROXY_SERVER, optional Jupyter server name, such asmuller-login-node-baseorperlmutter-login-nodeNOVNC_PORT, default6080inside the containerEXPOSE_VNC, default0; set to1to publish the VNC server portVNC_HOST_ADDR, default127.0.0.1VNC_HOST_PORT, default toVNC_PORTVNC_PORT, default5901inside the containerVNC_PASSWORD_LENGTH, default8
Runtime settings are controlled with environment variables:
VNC_DISPLAY, default1VNC_PORT, default5901VNC_GEOMETRY, default1280x800VNC_DEPTH, default24VNC_LOCALHOST, defaultnoVNC_SECURITY_TYPES, defaultVncAuth; set toNoneto disable VNC authVNC_PASSWORD, defaultchangemeVNC_PASSWORD_FILE, default/root/.vnc/passwdVNC_PASSWORD_PLAIN_FILE, optional plaintext password file used to generateVNC_PASSWORD_FILEVNC_XSTARTUP, default/root/.vnc/xstartupVNC_DESKTOP_CMD, defaultfvwm3VNC_EXTRA_ARGS, appended tovncserverNOVNC_LISTEN, default0.0.0.0NOVNC_PORT, default6080NOVNC_WEB, default/usr/share/novncNOVNC_VNC_HOST, default127.0.0.1NOVNC_VNC_PORT, default toVNC_PORTNOVNC_EXTRA_ARGS, appended towebsockify