A browser-based VS Code environment built on Ubuntu
1.7K
A browser-based VS Code environment (code-server) built on Ubuntu, pre-loaded with a cloud/infrastructure toolchain. Intended to run behind a reverse proxy (Caddy, Nginx, etc.) that handles authentication.
| Tool | Version |
|---|---|
| code-server | 4.96.2 |
| Terraform | 1.10.5 |
| kubectl | 1.32.2 |
| yq | 4.45.1 |
| AWS CLI v2 | latest |
| AWS Session Manager Plugin | latest |
GitHub CLI (gh) | latest |
| gimme-aws-creds | latest |
| zsh + oh-my-zsh | latest |
docker run -d \
--name vscode \
-p 8080:8080 \
-v $(pwd)/workspace:/workspace/code \
ksnarf/vscode-ubuntu:latest
Open http://localhost:8080 in your browser.
AWS credential paths are isolated to /workspace/aws to avoid collisions with host config:
docker run -d \
--name vscode \
-p 8080:8080 \
-v $(pwd)/workspace:/workspace/code \
-v ~/.aws:/workspace/aws \
ksnarf/vscode-ubuntu:latest
docker build -t vscode-ubuntu .
All versioned tools are controlled via build ARGs:
docker build \
--build-arg CODE_SERVER_VERSION=4.96.2 \
--build-arg TERRAFORM_VERSION=1.10.5 \
--build-arg KUBECTL_VERSION=1.32.2 \
--build-arg YQ_VERSION=4.45.1 \
-t vscode-ubuntu .
| Path | Purpose |
|---|---|
/workspace/code | Mount point for your project files |
/workspace/tmp | Scratch space |
/workspace/artifacts | Build outputs |
/workspace/aws | AWS config and credentials (isolated from host ~/.aws) |
code-server runs with --auth none. Do not expose port 8080 directly to the internet. Place this behind a reverse proxy that enforces authentication (e.g. Caddy with basicauth or an SSO provider via Authentik/Authelia).
Example Caddy snippet:
vscode.example.com {
reverse_proxy vscode:8080
basicauth {
user $2a$14$...
}
}
| Variable | Default | Description |
|---|---|---|
AWS_CONFIG_FILE | /workspace/aws/config | AWS CLI config path |
AWS_SHARED_CREDENTIALS_FILE | /workspace/aws/credentials | AWS credentials path |
OKTA_CONFIG | /workspace/aws/okta_aws_login_config | gimme-aws-creds config path |
Content type
Image
Digest
sha256:e04352059…
Size
388.3 MB
Last updated
8 months ago
docker pull ksnarf/vscode