HUB
Sign inSign up

isi006/container-coding-env

By isi006

•Updated almost 6 years ago

This image delivers a complete development environment for DevOps tasks.

Image
0

1.7K

isi006/container-coding-env repository overview

⁠Container based coding environment

This image delivers a complete development environment for DevOps tasks. It was created with following design goals in mind:

  • Focus on developing automation scripts and container images.
  • Deliver a real linux based environment to be as much as compatible as possible to the build, test and production environments.
  • Can run in any container orchestration system like docker or k8s.
  • Have a ability to build and test container images (docker build, docker run ...)
  • Full automated deployment
  • Easy to setup
  • Every needed tool should be in place (git, ssh-client, kubectl, container runtime, password manager etc.)
  • Integrated vscode IDE accessible via a web browser over https, so no local setup is required.
  • Integrated filebrowser to ease the exchange of files

⁠Additional Notes

The web interface from code-server is implemented as an PWA (progressive web app). That means that it is a installable app, that behaves like a normal Desktop app (fast load, no browser ui, own icon, start menu entry ...). Install the app by click on the +-Sign in the adress bar.

The developer acts as the user podman. His home directory is /podman. It is very sensible to mount a volume on this location, to hold the state even when the container dies.

Daemon- and root less container development is implemented with podman⁠ and buildah⁠. They are installed as dropin replacements for the docker-cli. The commands docker and docker-compose are only sympolic links to podman and podman-compose. The container musst run privileged to use the container functions.

The OCI container runtime is crun⁠. The standard runc⁠ runtime was not runable on some kubernetes clusters.

⁠Credits

This repo based on several open source projects:

Many thanks for the great work!

⁠local build

docker-compose build

⁠privileged

It is necessary to run the container in privileged mode to use podman.

⁠deployment

⁠config via env vars
CODE_PORT: port to access the web ide, default 6080
FILEBROWSER_PORT: port to access the filebrowser, default 6090
CODE_PASSWORD: password for ide and filebrowser (user: podman), default _changemenow_
⁠local docker

For testing you can simply call docker-compose:

docker-compose up -d

and visit the http://localhost:8080⁠, access the IDE with the password _changemenow_.

⁠kubernetes

Please look at the example manifest file kubernetes.yaml⁠ for reference and take care of the comments regarding to

  • the Persistent volume claim and storage class
  • the base64 encoded secret to set the access password
  • the domain name and certificate
Tag summary
Recent tags
Content type
Image
Digest
Size
231.1 MB
Last updated
almost 6 years ago
docker pull isi006/container-coding-env:latest