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
.env
file relative to thedocker-compose.yaml file
with and defineREMOTE_HOST
REMOTE_USERNAME
andREMOTE_PASSWORD
- Run
docker-compose start
- Access the web page at
http://localhost:8000