This image provides a reproducible Ubuntu 24.04 developer environment that matches the local and CI toolchain expectations for this repository.
docker build -t polycpp-dev -f Dockerfile.dev .docker run --rm -it -v "$PWD:/workspace" polycpp-devdocker run --rm -it -v "$PWD:/workspace" polycpp-dev bash -lc 'cd build && conan install .. --build=missing -pr:b=default -s build_type=Release && cd .. && cmake -S . -B build/Release -G Ninja -DCMAKE_TOOLCHAIN_FILE=build/Release/generators/conan_toolchain.cmake -DPOLYCPP_WARNINGS_AS_ERRORS=ON && cmake --build build/Release && ctest --test-dir build/Release --output-on-failure'sccacheis preinstalled in the image.POLYCPP_USE_SCCACHE=ONis the default in this repo.- Conan-generated preset names can vary by environment and generator (for
example,
conan-releasevsconan-default), so this doc uses explicit-DCMAKE_TOOLCHAIN_FILE=...configure commands. - Local
sccacheuses~/.cache/sccacheby default (no remote configured; remote cache configuration is for CI). - The
devuser has passwordless sudo for exploratory package installs.
Use .devcontainer/devcontainer.json and run the VS Code command: "Dev Containers: Reopen in Container".