-
Install Docker
-
Install Visual Studio Code
-
Install the Remote - Containers extension for Visual Studio Code
-
Create a new folder for your project
-
Download the cc-devcontainer.tar.gz or cc-devcontainer.zip file and extract it into the folder On Unix based systems, you can use the following commands:
curl -sSfLo - https://github.com/heia-fr/cc-devcontainer/releases/latest/download/cc-devcontainer.tar.gz | tar xvf -
-
Check that you have the following files in your project folder:
. ├── .devcontainer │ ├── Dockerfile │ └── devcontainer.json └── .startup.sh
-
Open the project folder in Visual Studio Code
-
If you are prompted to reopen the folder in a container, click on "Reopen in Container". You can also click on the button in the bottom left corner of the window and select "Reopen in Container"
The file .install.sh
is executed when the container is built. You can modify this file to install additional tools or libraries.
Currently, this script configure the theme for oh-my-zsh and patches the ~/.zshrc
file to source the .zshrc
file from the project folder.