Run Code Server in a container using the [do-framework](https://bit.ly/do-framework)
1.3K
This project simplifies running of Code Server in a container either locally using Docker or on a Kubernetes cluster.
Run the ./config.sh script to open the project's configuration file.
The PASSWORD setting allows you to set a password for your Code Server instance
Run the ./build.sh script to build the container image.
This container image is pre-built and shared via DockerHub at iankoulski/do-jupyterlab. To simply run Code Server without building the container image, please use the following command:
docker run -it --rm -v $(pwd):/wd -p 8080:8080 -e PASSWORD=C0d3S3rv3r iankoulski/do-codeserver
To run Code Server on Kubernetes using the pre-built container image, please use the following command:
kubectl apply -f https://bit.ly/do-codeserver-yaml
If you want to share the container with others or run it on a Kubernetes cluster, run the ./push.sh script. This will push the container image to your configured registry.
Execute the ./run.sh script to run Code Server locally using Docker.
If you would like to run the Code Server instance on Kubernetes, change the TO setting in the project configuration from docker to kubernetes first, then execute the ./run.sh script.
This is a Depend on Docker project which comes operational out of the box and is configured with reasonable defaults, which can be customized as needed.
The project contains the following scripts:
config.sh - open the configuration file .env in an editor so the project can be customizedbuild.sh - build the container imagetest.sh - run container unit testspush.sh - push the container image to a registrypull.sh - pull the container image from a registryrun.sh [cmd] - run the container, passing an argument overrides the default commandexpose.sh - expose a Code Server running on Kubernetes locally via port-forwardinghide.sh - stop port-forwardingstatus.sh - show container status - running, exited, etc.logs.sh - tail container logsexec.sh [cmd] - open a shell or execute a specified command in the running containerThis project is released under the MIT LICENSE.
Content type
Image
Digest
sha256:8dfa8f3c0…
Size
253 MB
Last updated
over 1 year ago
docker pull iankoulski/do-codeserver