Develop C++ applications on Linux. Includes Debian C++ build tools.
Options Id | Description | Type | Default Value |
---|---|---|---|
imageVariant | Debian / Ubuntu version (use Debian 12, Debian 11, Ubuntu 24.04, and Ubuntu 22.04 on local arm64/Apple Silicon): | string | debian-11 |
reinstallCmakeVersionFromSource | Install CMake version different from what base image has already installed. | string | none |
This template references an image that was pre-built to automatically include needed devcontainer.json metadata.
- Image: mcr.microsoft.com/devcontainers/cpp (source)
- Applies devcontainer.json contents from image: Yes (source)
This dev container and its associated image includes a clone of the Vcpkg
repo for library packages, and a bootstrapped instance of the Vcpkg-tool itself.
The minimum version of cmake
required to install packages is higher than the version available in the main package repositories for Debian (<=11) and Ubuntu (<=21.10). Vcpkg
will download a compatible version of cmake
for its own use if that is the case (on x86_64 architectures), however you can opt to reinstall a different version of cmake
globally by replacing ${templateOption:reinstallCmakeVersionFromSource}
with version (say 3.21.5) in .devcontainer/Dockerfile
.
Most additional library packages installed using Vcpkg will be downloaded from their official distribution locations. To configure Vcpkg in this container to access an alternate registry, more information can be found here: Registries: Bring your own libraries to vcpkg.
To update the available library packages, pull the latest from the git repository using the following command in the terminal:
cd "${VCPKG_ROOT}"
git pull --ff-only
Note: Please review the Vcpkg license details to better understand its own license and additional license information pertaining to library packages and supported ports.
Note: This file was auto-generated from the devcontainer-template.json. Add additional notes to a NOTES.md
.