Skip to content

Commit 21e5c2a

Browse files
Add Devcontainer configurations (#1093)
* Add clang devcontainers * Add gcc devcontainers * Remove comment * Transition to bullseye variants of clang image to build --------- Co-authored-by: John Wellbelove <[email protected]>
1 parent 6d14a73 commit 21e5c2a

24 files changed

+573
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
ARG BASE_IMAGE_NAME="clang:latest"
2+
3+
FROM ${BASE_IMAGE_NAME}
4+
5+
ARG REINSTALL_CMAKE_VERSION_FROM_SOURCE="3.31.7"
6+
7+
# Optionally install the cmake for vcpkg
8+
COPY ./reinstall-cmake.sh /tmp/
9+
10+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
11+
&& apt-get -y install --no-install-recommends \
12+
git \
13+
wget
14+
15+
RUN if [ "${REINSTALL_CMAKE_VERSION_FROM_SOURCE}" != "none" ]; then \
16+
chmod +x /tmp/reinstall-cmake.sh && /tmp/reinstall-cmake.sh ${REINSTALL_CMAKE_VERSION_FROM_SOURCE}; \
17+
fi \
18+
&& rm -f /tmp/reinstall-cmake.sh
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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
3+
{
4+
"name": "Clang 10",
5+
"build": {
6+
"dockerfile": "../Dockerfile",
7+
"args": {
8+
"BASE_IMAGE_NAME": "silkeh/clang:10"
9+
},
10+
"context": "../context"
11+
}
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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
3+
{
4+
"name": "Clang 11",
5+
"build": {
6+
"dockerfile": "../Dockerfile",
7+
"args": {
8+
"BASE_IMAGE_NAME": "silkeh/clang:11"
9+
},
10+
"context": "../context"
11+
}
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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
3+
{
4+
"name": "Clang 12",
5+
"build": {
6+
"dockerfile": "../Dockerfile",
7+
"args": {
8+
"BASE_IMAGE_NAME": "silkeh/clang:12"
9+
},
10+
"context": "../context"
11+
}
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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
3+
{
4+
"name": "Clang 13",
5+
"build": {
6+
"dockerfile": "../Dockerfile",
7+
"args": {
8+
"BASE_IMAGE_NAME": "silkeh/clang:13"
9+
},
10+
"context": "../context"
11+
}
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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
3+
{
4+
"name": "Clang 14",
5+
"build": {
6+
"dockerfile": "../Dockerfile",
7+
"args": {
8+
"BASE_IMAGE_NAME": "silkeh/clang:14"
9+
},
10+
"context": "../context"
11+
}
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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
3+
{
4+
"name": "Clang 15",
5+
"build": {
6+
"dockerfile": "../Dockerfile",
7+
"args": {
8+
"BASE_IMAGE_NAME": "silkeh/clang:15"
9+
},
10+
"context": "../context"
11+
}
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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
3+
{
4+
"name": "Clang 16",
5+
"build": {
6+
"dockerfile": "../Dockerfile",
7+
"args": {
8+
"BASE_IMAGE_NAME": "silkeh/clang:16"
9+
},
10+
"context": "../context"
11+
}
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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
3+
{
4+
"name": "Clang 17",
5+
"build": {
6+
"dockerfile": "../Dockerfile",
7+
"args": {
8+
"BASE_IMAGE_NAME": "silkeh/clang:17"
9+
},
10+
"context": "../context"
11+
}
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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
3+
{
4+
"name": "Clang 18",
5+
"build": {
6+
"dockerfile": "../Dockerfile",
7+
"args": {
8+
"BASE_IMAGE_NAME": "silkeh/clang:18-bullseye"
9+
},
10+
"context": "../context"
11+
}
12+
}

0 commit comments

Comments
 (0)