Skip to content

ops4life/code-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code-server

Custom code-server Docker image built on top of codercom/code-server:latest, with added Python tooling.

What's included

  • python3, python3-pip, python3-venv
  • jq
  • pre-commit

Image

ops4life/code-server:latest

Usage

docker pull ops4life/code-server:latest
docker run -it -p 8080:8080 ops4life/code-server:latest

Then open http://localhost:8080 in your browser.

Default password

On first run, a config file is written to /root/.config/code-server/config.yaml inside the container with an auto-generated password. To retrieve it:

docker exec <container_id> cat /root/.config/code-server/config.yaml

The output will contain the password:

bind-addr: 0.0.0.0:8080
auth: password
password: <auto-generated>
cert: false

To set a custom password, pass the PASSWORD environment variable:

docker run -it -p 8080:8080 -e PASSWORD=yourpassword ops4life/code-server:latest

Local build

docker build -t code-server:local .
docker run -it --rm -p 8080:8080 code-server:local

CI/CD

Pushes to main automatically build and push to Docker Hub:

  • ops4life/code-server:latest
  • ops4life/code-server:<git-sha>

A scheduled build runs every Monday at 06:00 UTC to pick up upstream base image updates.

Workflow: .github/workflows/docker-publish.yml

Required secrets: DOCKER_USERNAME, DOCKER_PASSWORD

About

code-server Docker image with dev tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors