Skip to content

Commit 918c847

Browse files
committed
Install libgtest-dev in devcontainer
* Add libgtest-dev to devcontainer. * Restructure devcontainer to group repository tweaks, debian package installs, and pip package installs into separate sections. * Within each group, sort installed packages alphabetically, and put each on its own line. This makes code review and conflict resolution easier.
1 parent ee18c3f commit 918c847

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.devcontainer/Dockerfile

+13-6
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,22 @@ FROM mcr.microsoft.com/devcontainers/cpp:1-ubuntu-24.04
22

33
USER vscode
44

5-
# Install latest cmake
5+
# Add extra apt repositories
66
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
77
RUN echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ noble main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
8-
RUN sudo apt-get update && sudo apt-get install -y cmake
9-
10-
# Install pre-commit
11-
RUN sudo apt-get install -y pipx && pipx install pre-commit
8+
RUN sudo apt-get update
129

1310
# Newer gcc/ llvm is needed to avoid ASAN Stalling
1411
# See: https://github.com/google/sanitizers/issues/1614
1512
# Minimal version: clang-18.1.3, gcc-13.2
16-
RUN sudo apt-get install -y gcc-14
13+
14+
# Install apt dependencies
15+
RUN sudo apt-get install -y \
16+
cmake \
17+
gcc-14 \
18+
libgtest-dev \
19+
pipx
20+
21+
# Install pip dependencies
22+
RUN pipx install \
23+
pre-commit

0 commit comments

Comments
 (0)