You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 30, 2023. It is now read-only.
|*Supported architecture(s)*| x86-64, aarch64/arm64 for `bullseye`, `stretch`, `bionic`, and `hirsute` variants |
13
+
|*Supported architecture(s)*| x86-64 for `bullseye`, `stretch`, `bionic`, and `hirsute` variants |
14
14
|*Works in Codespaces*| Yes |
15
15
|*Container host OS support*| Linux, macOS, Windows |
16
16
|*Container OS*| Debian, Ubuntu |
@@ -32,7 +32,29 @@ build:
32
32
VARIANT: debian-11
33
33
```
34
34
35
-
Beyond `git`, this image / `Dockerfile` includes `zsh`, [Oh My Zsh!](https://ohmyz.sh/), a non-root `vscode` user with `sudo` access, and a set of common dependencies for development.
35
+
Beyond `git`, this image / `Dockerfile` includes `zsh`, [Oh My Zsh!](https://ohmyz.sh/), a non-root `vscode` user with `sudo` access, a set of common dependencies for development, and [Vcpkg](https://github.com/microsoft/vcpkg) a cross-platform package manager for C++.
36
+
37
+
### Using Vcpkg
38
+
This dev container and its associated image includes a clone of the [`Vcpkg`](https://github.com/microsoft/vcpkg) repo for library packages, and a bootstrapped instance of the [Vcpkg-tool](https://github.com/microsoft/vcpkg-tool) itself.
39
+
40
+
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 adding `REINSTALL_CMAKE_VERSION_FROM_SOURCE: <VERSION>` to build args in `.devcontainer/docker-compose.yml`. This will install `cmake` from its github releases. For example:
41
+
42
+
```yaml
43
+
args:
44
+
VARIANT: debian-11
45
+
REINSTALL_CMAKE_VERSION_FROM_SOURCE: "3.21.5" # Set to "none" to skip re-install of cmake
46
+
```
47
+
48
+
Most additional library packages installed using Vcpkg will be downloaded from their [official distribution locations](https://github.com/microsoft/vcpkg#security). To configure Vcpkg in this container to access an alternate registry, more information can be found here: [Registries: Bring your own libraries to vcpkg](https://devblogs.microsoft.com/cppblog/registries-bring-your-own-libraries-to-vcpkg/).
49
+
50
+
To update the available library packages, pull the latest from the git repository using the following command in the terminal:
51
+
52
+
```sh
53
+
cd "${VCPKG_ROOT}"
54
+
git pull --ff-only
55
+
```
56
+
57
+
> Note: Please review the [Vcpkg license details](https://github.com/microsoft/vcpkg#license) to better understand its own license and additional license information pertaining to library packages and supported ports.
36
58
37
59
### Adding the definition to a project or codespace
0 commit comments