code-server-openshift
code-server-openshift copied to clipboard
Coder in your Kube/Docker/OpenShift cluster
Coder in Docker
This is a distribution of Coder's Visual Studio Code in browser designed to work for CNCF-compliant orchestators.
Running
We maintain two tags that has a specific container orchestrator usage.
- For OpenShift use the
chinodesuuu/coder:openshiftimage. - Kubernetes and anything else can use the
chinodesuuu/coder:vanilla/chinodesuuu/coder:latestimage. - A codercom-like stack is
chinodesuuu/coder:ubuntuimage. This does not work in OpenShift, unfortunately.
Keep in mind that Coder in Kubernetes does not play well with non-PVC mounts,
sudotends to fail to work with the volume mount onhostMountor NFS volumes, so make sure you setnosuidfor the mount.
After the pull has been done, make sure you bound to port 9000 and mount a volume in /home/coder/projects.
Enabling SSL or Auth
to enable auth, make sure you set the environment variable CODER_ENABLE_AUTH to true.
when CODER_ENABLE_AUTH is set to true, you must provide your password via CODER_PASSWORD else, it defaults to "coder".
To enable SSL, mount your certificates' dir to /home/coder/certs and set CODER_ENABLE_SSL to true.
Keep in mind for SSL, your files should be named as follows:
coder.crtfor the Certificate chain.coder.keyfor the Certificate key.
If you didn't name your files as such - it will be invalid and Coder will refuse to work.