Bootstrap a minimal typescript-node devcontainer for vscode in minutes
- Based on Microsoft's devcontainer image Node.js & TypeScript (Debian 16-bullseye)
- Workspace Explorer v2.3.0
a VSCode extension to help manage workspaces inside the devcontainer - Github CLI v2.9.0
You already have installed the following on your development computer:
- Docker or Docker desktop
- VSCode and the Remote-Development extension pack, or at least the remote-containers extension.
- In VS-Code execute the command
Remote-Containers: Clone Repository in Named Container Volume...- Clone this repository from URL
jpbourgeon/devcontainer-ts Create a new volumewith a meaningful name- Leave the target folder name untouched (this is important for the post-create script execution).
- Clone this repository from URL
- Rename the docker image
docker container rename CURRENT_NAME NEW_NAME - Configure the Github CLI
gh auth login - Add your project's repository to the
/workspacesfolder. You may duplicate the template repository fromjpbourgeon/devcontainer-repository. It provides you with a basic code workspace and an empty installation script to get started.
Hint : you can host multiple projects in the same devcontainer !
To update the devcontainer to the latest version:
- Attach VSCode to the devcontainer
- Open the terminal and
cd /workspaces/devcontainer-ts git pullthe latest commit on themainbranch- From the Remote explorer panel, right click on the
devcontainer-tscontainer and selectRebuild container