Awesome
Node Dev Container
Ultimate NodeJS development container for Visual Studio Code
Features
- Based on qmcgaw/basedevcontainer:
- Globally installed:
nodemon
andjest
- Cross platform
- Easily bind mount your SSH keys to use with git
- Manage your host Docker from within the dev container, more details at qmcgaw/basedevcontainer
- Extensible with docker-compose.yml
- 'Minimal' size of 535MB
- Comes with extra Go binary tools for a few extra MBs:
kubectl
,kubectx
,kubens
,stern
andhelm
Requirements
- Docker installed and running
- If you don't use Linux or Windows with WSL, share the directory
~/.ssh
and the directory of your project with Docker Desktop
- If you don't use Linux or Windows with WSL, share the directory
- Docker Compose installed
- VS code installed
- VS code remote containers extension installed
Setup for a project
- Setup your configuration files
-
With style 💯
docker run -it --rm -v "/yourrepopath:/repository" qmcgaw/devtainr:v0.2.0 -dev node -path /repository -name projectname
Or use the built binary
-
Or manually: download this repository and put the .devcontainer directory in your project.
-
- If you have a .vscode/settings.json, eventually move the settings to .devcontainer/devcontainer.json in the
"settings"
section as .vscode/settings.json take precedence over the settings defined in .devcontainer/devcontainer.json. - Open the command palette in Visual Studio Code (CTRL+SHIFT+P) and select
Remote-Containers: Open Folder in Container...
and choose your project directory
Customization
See the .devcontainer/README.md document in your repository.
License
This repository is under an MIT license unless indicated otherwise.