Skip to content

Commit 731f85c

Browse files
committed
Update files
1 parent 12e5ca5 commit 731f85c

File tree

3 files changed

+39
-32
lines changed

3 files changed

+39
-32
lines changed

.devcontainer/Dockerfile

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,8 @@
1-
FROM ubuntu:latest
1+
FROM mcr.microsoft.com/devcontainers/cpp:1-ubuntu-24.04
22

3-
# Install required dependencies
4-
RUN apt-get update && apt-get install -y \
5-
build-essential \
6-
cmake \
7-
git \
8-
clang \
9-
clang-format \
10-
lldb \
11-
gdb \
12-
valgrind \
13-
&& rm -rf /var/lib/apt/lists/*
3+
# [Optional] Uncomment this section to install additional vcpkg ports.
4+
# RUN su vscode -c "${VCPKG_ROOT}/vcpkg install <your-port-name-here>"
145

15-
# Set the working directory
16-
WORKDIR /workspaces/traits
17-
18-
# Use the 'vscode' user (update if you want to use a different user)
19-
RUN useradd -s /bin/bash -m vscode \
20-
&& chown -R vscode /workspaces
21-
USER vscode
6+
# [Optional] Uncomment this section to install additional packages.
7+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
8+
# && apt-get -y install --no-install-recommends <your-package-list-here>

.devcontainer/devcontainer.json

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/cpp
13
{
2-
"name": "C++ CMake Development",
3-
"build": {
4-
"dockerfile": "Dockerfile"
5-
},
6-
"remoteUser": "vscode",
7-
"customizations": {
8-
"vscode": {
9-
"extensions": [
10-
"ms-vscode.cpptools",
11-
"ms-vscode.cmake-tools"
12-
]
13-
}
14-
}
4+
"name": "C++",
5+
"build": {
6+
"dockerfile": "Dockerfile"
7+
}
8+
9+
// Features to add to the dev container. More info: https://containers.dev/features.
10+
// "features": {},
11+
12+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
13+
// "forwardPorts": [],
14+
15+
// Use 'postCreateCommand' to run commands after the container is created.
16+
// "postCreateCommand": "gcc -v",
17+
18+
// Configure tool-specific properties.
19+
// "customizations": {},
20+
21+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
22+
// "remoteUser": "root"
1523
}

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for more information:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://containers.dev/guide/dependabot
6+
7+
version: 2
8+
updates:
9+
- package-ecosystem: "devcontainers"
10+
directory: "/"
11+
schedule:
12+
interval: weekly

0 commit comments

Comments
 (0)