Skip to content

Commit e6be49b

Browse files
authored
Add devcontainer configuration (#8911)
1 parent b232c0f commit e6be49b

2 files changed

Lines changed: 68 additions & 0 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
FROM ubuntu:24.04
2+
3+
ENV DEBIAN_FRONTEND=noninteractive
4+
5+
RUN apt-get update && \
6+
ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \
7+
apt-get install -y tzdata && \
8+
apt-get install -y \
9+
build-essential \
10+
cmake \
11+
gdb \
12+
git \
13+
gnupg \
14+
libcurl4-openssl-dev \
15+
libedit-dev \
16+
libicu-dev \
17+
libjpeg-dev \
18+
libncurses-dev \
19+
libpng-dev \
20+
lsb-release \
21+
ninja-build \
22+
pkg-config \
23+
python3-dev \
24+
software-properties-common \
25+
wget \
26+
zlib1g-dev && \
27+
wget https://apt.llvm.org/llvm.sh && \
28+
chmod +x llvm.sh && \
29+
./llvm.sh 21 all && \
30+
apt-get install -y liblld-21-dev && \
31+
apt-get clean && \
32+
rm -rf llvm.sh /var/lib/apt/lists/* \

.devcontainer/devcontainer.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Default Ubuntu-based DevContainer Template.
2+
// For more customization options, see https://containers.dev/implementors/json_reference
3+
// Also note this file is "JSON with Comments" (JSONC).
4+
{
5+
"name": "Halide",
6+
"build": {
7+
"dockerfile": "Dockerfile"
8+
},
9+
"runArgs": [
10+
"--userns=keep-id",
11+
"--security-opt",
12+
"label=disable"
13+
],
14+
"customizations": {
15+
"jetbrains": {
16+
"backend": "CLion",
17+
"settings": {
18+
// IDE settings can be added via “Show context actions”|“Add currently modified settings from IDE”.
19+
// A complete list of supported settings is also available through auto-completion
20+
},
21+
"plugins": [
22+
// A set of plugin IDs.
23+
// Plugin ID can be found on the corresponding plugin’s page at https://plugins.jetbrains.com.
24+
]
25+
}
26+
},
27+
"features": {
28+
"ghcr.io/devcontainers/features/git": {},
29+
"ghcr.io/devcontainers/features/common-utils": {
30+
"installZsh": false
31+
}
32+
},
33+
// Comment out to connect as the root user.
34+
"remoteUser": "ubuntu",
35+
"containerUser": "root"
36+
}

0 commit comments

Comments
 (0)