Sign inSign up

tanmoysrt/labcaptain_base

By tanmoysrt

•Updated about 2 years ago

Fully featured OCI image to build your own lab environment on top of this base image

Image
Networking
Developer tools
Web servers
1

328

tanmoysrt/labcaptain_base repository overview

labcaptain_base docker image is a base image to build your own lab environment on top of.

⁠Why should you use this image?

This image has many things pre-configured to make it easy to get started with a lab environment.

  • Built on top of ubuntu 22.04
  • Non-root user labuser configured
  • Xfce4 with TigerVNC and noVNC support
  • Web based code editor (VSCode like code-server)
  • Web based terminal (ttyd)
  • Integrated ingress handling with HAProxy
  • Port proxy to handle port-based routing
⁠How to use this image?
docker run -it --rm -p 8080:80 tanmoysrt/labcaptain_base:1

Or, In your docker image, you can use this image as a base image

FROM tanmoysrt/labcaptain_base:1
⁠Where to put your lab files?

You can put your lab files in the following folders:

  • /home/labuser/Desktop/lab
⁠How to access lab software?

In the above examples, terminal, editor, vnc and port-<port_no> - all the dummy domains are pointed to 127.0.0.1.

⁠Configuration via environment variables
Environment variableDefault valueDescription
USER_PASSWORD12345Password for labuser
ENABLE_WEB_TERMINAL1Enable web terminal
ENABLE_CODE_SERVER1Enable code server
ENABLE_VNC1Enable VNC
ENABLE_PORT_PROXY1Enable port proxy
⁠Restrictions
  • In the lab image, do not run any service on these ports - 80, 8001, 8002, 8003, 8004
⁠License

MIT License

⁠Credits

Special thanks to this project - https://github.com/ConSol/docker-headless-vnc-container⁠ (Apache License 2.0). It made it possible to have proper configuration for Xfce4 + noVNC setup.

⁠Author

Tanmoy Sarkar @tanmoysrt⁠ Contact at [email protected]⁠

⁠Source Code

https://github.com/tanmoysrt/labcaptain/tree/main/base_image⁠

Tag summary

Content type

Image

Digest

sha256:c5f8963eb…

Size

704.9 MB

Last updated

about 2 years ago

docker pull tanmoysrt/labcaptain_base