After playing with it for a while, one issue prevented me from committing to this tool.
Mounting a Windows folder onto a Linux container results in a terrible reading speed (git status ~10 seconds on a medium-sized repo).
The recommendation was to have the source in a folder that's "Linux compatible" by either using WSL or adjusting the mounting method in the docker-compose.
For me, that's too much trouble.
It also seems that Webpack's hot-module-replacement feature doesn't work in a devcontainer out of the box.
-
Install & start Docker
-
Install Remote Development extension
-
Copy
.env.schema
's content into.env
and replace the dummy env variables -
Copy
devcontainer.schema.json
's content intodevcontainer.json
and replace the dummy values -
Set the
workspaceFolder
value indevcontainer.json
to the same asCONTAINER_WORKSPACE_FOLDER
in.env
-
Disable git's filemode-change tracking to make life easier when working on both Windows and Unix systems
git config --add core.filemode false
-
Clone the repo into a
.devcontainers
folder at the root of your project -
Copy
.gitattributes
to the root folder -
Run
Dev Containers: Reopen in Container
VSCode command