- Add file into your project root:
.devcontainer/devcontainer.json
- Install
the
Dev containers
extension in vscode. - Click the green button in the lower left corner of vscode and select
open folder in Container...
./distribute.sh
- Official config: https://github.com/devcontainers/images
Basically we use alpine's config for Dockerfile
s, but use c++ and alpine's for devcontainer.json
.
The VARIANT
arg in devcontainer.json
uses alpine's while others use c++'s.
Then, note that the common-alpine.sh
should also be traced to upgrade too.
- Add some vscode settings into
devcontainer.json
.