-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
I'd like to provide a fully-containerized development environment using Docker + VS Code’s Remote-Containers feature. That will let new contributors get up and running with zero local setup (no need to install CMake, Ninja, compilers, sanitizers, etc.) - just “Open Folder in Container” in VS Code.
- Create a
.devcontainer/directory at the project root. - Add a
Dockerfilethat- Starts from a base image (e.g.
ubuntu:24.04) - Installs all build dependencies: CMake, Ninja, gcc/g++/clang/ccache, git, curl, etc.
- Sets up a non-root user (
vscodeor similar)
- Starts from a base image (e.g.
- Add
devcontainer.jsonwith:"build": { "dockerfile": "Dockerfile" }- Workspace mount (default)
- Recommended extensions (see
.vscode/extensions.json) - Forward any ports (if your CLI ever serves a HTTP preview)
"remoteUser": "vscode"postCreateCommand: e.g.cmake --preset gcc-RelWithDebInfo
- Update README.md with a “Getting Started in Docker” section describing:
- How to install Docker + VS Code + Remote Containers
- “Open Folder in Container”
- How to configure presets inside the container
- How to run build/tests from inside VS Code or via CLI