https://github.com/xJonathanLEI/dev-container
A container image ideal for remote development
https://github.com/xJonathanLEI/dev-container
dev-container docker
Last synced: 5 months ago
JSON representation
A container image ideal for remote development
- Host: GitHub
- URL: https://github.com/xJonathanLEI/dev-container
- Owner: xJonathanLEI
- Created: 2020-10-28T19:07:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-02-10T10:04:32.000Z (about 1 year ago)
- Last Synced: 2025-09-11T17:57:45.217Z (5 months ago)
- Topics: dev-container, docker
- Language: Shell
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dev Container for VS Code Remote
This repository contains files for building an ideal development container for use with [Visual Studio Code Remote Development](https://code.visualstudio.com/docs/remote/remote-overview).
It's highly opinionated as it's meant for my own use.
## Configuration
The container is configurable through environment variables.
If you don't supply OpenSSH host keys they'll simply be randomly generated. However, it's highly recommended that you set them, or you'll get a key conflict every time you re-create the container.
For convenience, by default the container can be logged in with an empty password as user `dev`. It's recommended that you disable password login by setting `SSH_KEYS`.
### SSH_PORT
The port the OpenSSH server listens on. Defaults to `22`.
### SSH_KEYS
Public keys for SSH login. Multiple keys are separated by comma `,`. Password login (with empty password) if disabled if and only if `SSH_KEYS` is supplied.
### SSH_HOST_DSA_KEY
The base64-encoded DSA host private key used by the OpenSSH server.
### SSH_HOST_ECDSA_KEY
The base64-encoded ECDSA host private key used by the OpenSSH server.
### SSH_HOST_ED25519_KEY
The base64-encoded ED25519 host private key used by the OpenSSH server.
### SSH_HOST_RSA_KEY
The base64-encoded RSA host private key used by the OpenSSH server.
### STARTUP_COMMAND
An optional command to run during container startup.