Skip to content
Draft
Changes from 2 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
41e6ff7
chore: reduce COPY's and wget's
rjaegers Jun 2, 2025
8624c61
chore: fix build issue
rjaegers Jun 2, 2025
0b2e86f
chore: test-drive multi-stage downloads
rjaegers Jun 2, 2025
ca8c04b
chore: fix warnings and build error
rjaegers Jun 2, 2025
620626a
chore: more fixing
rjaegers Jun 2, 2025
9188d3f
chore: move extraction of archive
rjaegers Jun 2, 2025
73cfe9a
chore: fix arg reference
rjaegers Jun 2, 2025
7af1004
chore: re-fix arg usage
rjaegers Jun 2, 2025
5114443
chore: fix extraction
rjaegers Jun 2, 2025
c6fd52e
chore: squash another layer
rjaegers Jun 2, 2025
5831465
chore: add checksums to gpg keys
rjaegers Jun 2, 2025
f389335
chore: fix line continuation
rjaegers Jun 2, 2025
eafb9d5
chore: fix an "it was late"
rjaegers Jun 3, 2025
4a88582
chore: correct installation of certificate
rjaegers Jun 3, 2025
a45aba4
chore: move download of arm gcc toolchain to separate stage
rjaegers Jun 3, 2025
a1d0653
chore: fix gcc-arm-none-eabi install
rjaegers Jun 3, 2025
a448ac3
chore: hoist-up xwin as well
rjaegers Jun 3, 2025
0e504ff
chore: hoist-up bats installation
rjaegers Jun 3, 2025
d92864e
chore: reduce number of layers
rjaegers Jun 3, 2025
b9daef1
Merge branch 'main' into feature/reduce-unnecessary-copy-and-wget
rjaegers Jun 6, 2025
f906441
Merge branch 'main' into feature/reduce-unnecessary-copy-and-wget
rjaegers Jun 10, 2025
4372863
Merge branch 'main' into feature/reduce-unnecessary-copy-and-wget
rjaegers Jun 19, 2025
5a8e0b4
Merge branch 'main' into feature/reduce-unnecessary-copy-and-wget
rjaegers Jun 26, 2025
f761eb4
Merge branch 'main' into feature/reduce-unnecessary-copy-and-wget
rjaegers Jun 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 13 additions & 15 deletions .devcontainer/cpp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,21 @@

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# Include the Cisco Umbrella PKI Root
ADD --checksum=sha256:a122d4080a26c1da986bd0e7202b1630eb661a624915ef244f496fdd306e85fb \
https://www.cisco.com/security/pki/certs/ciscoumbrellaroot.pem /usr/local/share/ca-certificates/ciscoumbrellaroot.pem

# Install the base system with all tool dependencies
COPY .devcontainer/cpp/apt-requirements-base.json /tmp/apt-requirements-base.json
# hadolint ignore=DL3008
RUN apt-get update && apt-get install -y --no-install-recommends jq \
RUN --mount=type=bind,source=.devcontainer/cpp/apt-requirements-base.json,target=/tmp/apt-requirements-base.json \
apt-get update && apt-get install -y --no-install-recommends jq \
&& jq -r 'to_entries | .[] | .key + "=" + .value' /tmp/apt-requirements-base.json | xargs apt-get install -y --no-install-recommends \
&& rm /tmp/apt-requirements-base.json \
&& rm -rf /var/lib/apt/lists/*

# Include the Cisco Umbrella PKI Root
RUN wget -qO /usr/local/share/ca-certificates/Cisco_Umbrella_Root_CA.crt https://www.cisco.com/security/pki/certs/ciscoumbrellaroot.pem \
&& update-ca-certificates
&& update-ca-certificates \
&& rm -rf /var/cache/apt/archives /var/lib/apt/lists/*

# Install some tools via pip to get more recent versions
COPY .devcontainer/cpp/requirements.txt /tmp/requirements.txt
RUN python3 -m pip install --break-system-packages --require-hashes --no-cache-dir -r /tmp/requirements.txt \
&& rm -rf /tmp/requirements.txt
RUN --mount=type=bind,source=.devcontainer/cpp/requirements.txt,target=/tmp/requirements.txt \
python3 -m pip install --break-system-packages --require-hashes --no-cache-dir -r /tmp/requirements.txt

# Set default environment options for CMake and ccache
ENV CMAKE_GENERATOR="Ninja"
Expand All @@ -38,18 +37,17 @@
ENV CPM_SOURCE_CACHE=/cache/.cpm-cache

# Install clang toolchain and mull mutation testing framework
COPY .devcontainer/cpp/apt-requirements-clang.json /tmp/apt-requirements-clang.json
# hadolint ignore=SC1091
RUN wget -qO - https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor -o /usr/share/keyrings/llvm-snapshot-keyring.gpg \
RUN --mount=type=bind,source=.devcontainer/cpp/apt-requirements-clang.json,target=/tmp/apt-requirements-clang.json \
wget -qO - https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor -o /usr/share/keyrings/llvm-snapshot-keyring.gpg \
&& wget -qO - https://dl.cloudsmith.io/public/mull-project/mull-stable/gpg.41DB35380DE6BD6F.key | gpg --dearmor -o /usr/share/keyrings/mull-project-mull-stable-archive-keyring.gpg \
&& UBUNTU_CODENAME=$(. /etc/os-release; echo "${UBUNTU_CODENAME/*, /}") \
&& echo "deb [signed-by=/usr/share/keyrings/llvm-snapshot-keyring.gpg] http://apt.llvm.org/${UBUNTU_CODENAME}/ llvm-toolchain-${UBUNTU_CODENAME}-${CLANG_VERSION} main" | tee /etc/apt/sources.list.d/llvm.list > /dev/null \
&& echo "deb [signed-by=/usr/share/keyrings/mull-project-mull-stable-archive-keyring.gpg] https://dl.cloudsmith.io/public/mull-project/mull-stable/deb/ubuntu ${UBUNTU_CODENAME} main" | tee /etc/apt/sources.list.d/mull-project-mull-stable.list > /dev/null \
&& echo -e 'Package: *\nPin: origin "apt.llvm.org"\nPin-Priority: 1000' > /etc/apt/preferences \
&& apt-get update \
&& jq -r 'to_entries | .[] | .key + "=" + .value' /tmp/apt-requirements-clang.json | xargs apt-get install -y --no-install-recommends \
&& rm /tmp/apt-requirements* \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
ENV PATH="$PATH:/usr/lib/llvm-${CLANG_VERSION}/bin"

# Install arm-gcc toolchain
Expand Down
Loading