Skip to content

Commit c116f29

Browse files
committed
add devcontainer setup
1 parent 11de4d8 commit c116f29

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.devcontainer/Containerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM mcr.microsoft.com/devcontainers/rust:dev-trixie
2+
3+
RUN DEBIAN_FRONTEND=noninteractive apt update && apt install -y \
4+
pkg-config \
5+
libssl-dev \
6+
libxkbcommon-dev \
7+
libwebkit2gtk-4.1-dev \
8+
just
9+
10+
RUN git clone https://github.com/pop-os/cosmic-icons.git /tmp/Cosmic
11+
RUN cd /tmp/Cosmic && just install

.devcontainer/devcontainer.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "QuickWebApps",
3+
"build": {
4+
"dockerfile": "Containerfile",
5+
"context": ".."
6+
},
7+
"runArgs": [
8+
"--device=/dev/dri:/dev/dri",
9+
"--security-opt",
10+
"seccomp=unconfined"
11+
],
12+
"mounts": [
13+
"source=${localEnv:XDG_RUNTIME_DIR}/${localEnv:WAYLAND_DISPLAY},target=/tmp/${localEnv:WAYLAND_DISPLAY},type=bind"
14+
],
15+
"containerEnv": {
16+
"WAYLAND_DISPLAY": "${localEnv:WAYLAND_DISPLAY}",
17+
"XDG_RUNTIME_DIR": "/tmp"
18+
}
19+
}

0 commit comments

Comments
 (0)