Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
18 changes: 10 additions & 8 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use the official Ubuntu base image
FROM ubuntu:22.04
FROM ubuntu:26.04

# Avoid interactive package installation
ENV DEBIAN_FRONTEND=noninteractive
Expand All @@ -18,26 +18,28 @@ RUN apt update && apt install -y \
python3 \
python3-pip \
gdb \
lcov \
lldb \
clang \
llvm \
nano \
software-properties-common \
doxygen \
graphviz \
&& rm -rf /var/lib/apt/lists/*
sudo \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

# Create a non-root user
ARG USERNAME=vscode
ARG USER_UID=1000
ARG USER_GID=$USER_UID

RUN groupadd -g $USER_GID $USERNAME || true \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME -s /bin/bash \
&& apt update \
&& apt install -y sudo \
&& echo $USERNAME ALL=\(ALL\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
&& chmod 0440 /etc/sudoers.d/$USERNAME
RUN usermod --login ${USERNAME} --home /home/${USERNAME} --move-home $(getent passwd ${USER_UID} | cut -d: -f1) \
&& usermod --gid ${USER_GID} ${USERNAME} \
&& passwd -d ${USERNAME} \
&& printf '%s ALL=(ALL) NOPASSWD:ALL\n' "${USERNAME}" > "/etc/sudoers.d/${USERNAME}" \
&& chmod 0440 "/etc/sudoers.d/${USERNAME}" \
&& visudo -cf "/etc/sudoers.d/${USERNAME}"

# History
RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhistory/.bash_history" \
Expand Down
4 changes: 2 additions & 2 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"${workspaceFolder}/**"
],
"defines": [],
"compilerPath": "/usr/bin/gcc-9",
"compilerPath": "/usr/bin/gcc-15",
"cStandard": "c17",
"intelliSenseMode": "linux-clang-x64",
"configurationProvider": "ms-vscode.cmake-tools"
Expand All @@ -17,7 +17,7 @@
"${workspaceFolder}/**"
],
"defines": [],
"compilerPath": "/usr/bin/clang-10",
"compilerPath": "/usr/bin/clang-21",
"cStandard": "c17",
"intelliSenseMode": "linux-clang-x64",
"configurationProvider": "ms-vscode.cmake-tools"
Expand Down
4 changes: 2 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ endif()

include(FetchContent)
if (NOT googletest_POPULATED)
FetchContent_Declare(googletest URL https://github.com/google/googletest/archive/refs/tags/v1.15.2.zip)
FetchContent_Declare(googletest URL https://github.com/google/googletest/archive/refs/tags/v1.18.0.zip)
FetchContent_MakeAvailable(googletest)
endif ()

Expand Down Expand Up @@ -67,7 +67,7 @@ package_add_test(zip_test zip_test.cpp zip_iterator_test.cpp zip_integration_tes
# Benchmark
if (ENABLE_BENCHMARKS)
if (NOT benchmark_POPULATED)
FetchContent_Declare(benchmark URL https://github.com/google/benchmark/archive/refs/tags/v1.8.5.zip)
FetchContent_Declare(benchmark URL https://github.com/google/benchmark/archive/refs/tags/v1.10.0.zip)
FetchContent_MakeAvailable(benchmark)
endif ()

Expand Down
Loading