diff --git a/.devcontainer/cpp/Dockerfile b/.devcontainer/cpp/Dockerfile index 96f283c7..39264c27 100644 --- a/.devcontainer/cpp/Dockerfile +++ b/.devcontainer/cpp/Dockerfile @@ -4,7 +4,6 @@ ARG BATS_VERSION=1.11.0 ARG CCACHE_VERSION=4.11 ARG CLANG_VERSION=18 ARG CPM_VERSION=0.40.2 -ARG DOCKER_VERSION=27.3.1 ARG INCLUDE_WHAT_YOU_USE_VERSION=0.22 ARG XWIN_VERSION=0.6.5 @@ -32,11 +31,11 @@ RUN python3 -m pip install --break-system-packages --require-hashes --no-cache-d && rm -rf /tmp/requirements.txt # Set default environment options for CMake and ccache -ENV CCACHE_DIR=/cache/.ccache -ENV CMAKE_EXPORT_COMPILE_COMMANDS="On" -ENV CMAKE_GENERATOR="Ninja" -ENV CONAN_HOME=/opt/conan -ENV CPM_SOURCE_CACHE=/cache/.cpm-cache +ENV CCACHE_DIR=/cache/.ccache \ + CMAKE_EXPORT_COMPILE_COMMANDS="On" \ + CMAKE_GENERATOR="Ninja" \ + CONAN_HOME=/opt/conan \ + 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 @@ -58,11 +57,6 @@ RUN mkdir /opt/gcc-arm-none-eabi \ && wget -qO - "https://developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-$(uname -m)-arm-none-eabi.tar.xz" | tar --exclude='*arm-none-eabi-gdb*' --exclude='share' --strip-components=1 -xJC /opt/gcc-arm-none-eabi ENV PATH="$PATH:/opt/gcc-arm-none-eabi/bin" -# Install docker-cli for Docker-from-Docker tools -RUN wget -qO - "https://download.docker.com/linux/static/stable/$(uname -m)/docker-${DOCKER_VERSION}.tgz" | tar xz -C /tmp \ - && mv /tmp/docker/docker /usr/local/bin/ \ - && rm -rf /tmp/docker - # Install bats RUN batstmp="$(mktemp -d /tmp/bats-core-${BATS_VERSION}.XXXX)" \ && wget -qO - https://github.com/bats-core/bats-core/archive/refs/tags/v${BATS_VERSION}.tar.gz | tar xz -C "${batstmp}" \ diff --git a/.devcontainer/cpp/devcontainer.json b/.devcontainer/cpp/devcontainer.json index a4ea611c..e8a021d4 100644 --- a/.devcontainer/cpp/devcontainer.json +++ b/.devcontainer/cpp/devcontainer.json @@ -8,9 +8,6 @@ "CONTAINER_FLAVOR": "cpp", "NODE_EXTRA_CA_CERTS": "/usr/local/share/ca-certificates/Cisco_Umbrella_Root_CA.crt" }, - "mounts": [ - "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" - ], "features": { "ghcr.io/devcontainers/features/desktop-lite:1": {}, "ghcr.io/devcontainers/features/github-cli:1": {}, diff --git a/.devcontainer/rust/devcontainer.json b/.devcontainer/rust/devcontainer.json index 1e9a5db1..8d4ab3e7 100644 --- a/.devcontainer/rust/devcontainer.json +++ b/.devcontainer/rust/devcontainer.json @@ -7,9 +7,6 @@ "remoteEnv": { "CONTAINER_FLAVOR": "rust" }, - "mounts": [ - "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" - ], "customizations": { "vscode": { "settings": { diff --git a/test/cpp/integration-tests.bats b/test/cpp/integration-tests.bats index 8afb832d..b3b674e9 100644 --- a/test/cpp/integration-tests.bats +++ b/test/cpp/integration-tests.bats @@ -190,12 +190,6 @@ teardown() { assert_output "Hello World!" } -@test "when the docker socket is mounted, using the docker cli should give access to the host docker daemon" { - run docker info - assert_success - assert_output --partial "Server Version:" -} - @test "sanitizers should detect undefined or suspicious behavior in code compiled with gcc" { build_and_run_with_sanitizers gcc }