Development environment containerized as a web service with powershell, bash, omz, nodejs, python3..
116
If vs-code already supports this type of service, why use this one?
I started with linuxserver.io's code-server image and added some utilities including...
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.
Content type
Image
Digest
sha256:8f3b6bc56…
Size
646.9 MB
Last updated
about 2 years ago
docker pull rhyknowscerious/code-server:behemoth