Sign inSign up

rhyknowscerious/code-server

By rhyknowscerious

Updated about 2 years ago

Development environment containerized as a web service with powershell, bash, omz, nodejs, python3..

Image
Developer tools
0

116

rhyknowscerious/code-server repository overview

rhyknowscerious/code-server

If vs-code already supports this type of service, why use this one?

  1. avoid installing vs-code on your local OS
  2. avoid installing on any virtual machines (if you choose)
  3. avoid some licensing
  4. full control of the image (after linuxserver.io's customizations, that is - and I may move this to another, more raw base image like debian or alpine)

I started with linuxserver.io's code-server image and added some utilities including...

  • powershell
  • omzsh
  • nodejs
  • python
  • tenv (opentofu, terraform, and terragrunt manager)
  • locate

Source code for the image alteration here on bitbucket:

Edit this compose config and fire it off with docker compose up -d:

# compose.yml
---
services:
  code-server:
    image: rhyknowscerious/code-server:behemoth
    container_name: code-server
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - PASSWORD=password #optional
      #- HASHED_PASSWORD= #optional
      - SUDO_PASSWORD=password #optional
      #- SUDO_PASSWORD_HASH= #optional
      #- PROXY_DOMAIN=code-server.my.domain #optional
      - DEFAULT_WORKSPACE=/config/workspace #optional
    volumes:
      #- code-server-config:/config # to test the container, 1. uncomment this line, 2. comment the next line, 3. and uncomment the volume lines at the end of this file
      - /mnt/c/container-volumes/code-server/config:/config # See the path on the left of the colon? That should point to a folder on your host system to be used by the container. If you're on windows it could look something like this (including quotes and dash): - "C:/container-volumes/code-server/config:/config"
    ports:
      - 80:8443
    restart: unless-stopped

# volumes:
#   code-server-config:

Monitor it with docker logs -f $container_id where $container_id can be found by using docker ps or by checking docker desktop. Use CTRL+C to detach from the logs.

Stop it with docker compose down. Or tear it down completely with docker compose down --remove-orphans --rmi --volumes.

Tag summary

Content type

Image

Digest

sha256:8f3b6bc56

Size

646.9 MB

Last updated

about 2 years ago

docker pull rhyknowscerious/code-server:behemoth