Dockerfile with the required packages, index.html, and server.js to run a simple node.js backend that allows the terminal of a remote host to be displayed in a web browser using XTermjs.
- Develop environment variables to pass into host, username, and password / key file fields in server.js
- Kubernetes deployment
- Build the docker image using
docker build -t xterm-web-app/nodejs - Create your
.envfile relative to thedocker-compose.yaml filewith and defineREMOTE_HOSTREMOTE_USERNAMEandREMOTE_PASSWORD - Run
docker-compose start - Access the web page at
http://localhost:8000