Skip to content

Commit a2b0fb3

Browse files
committed
Add devcontainer
1 parent bce40e8 commit a2b0fb3

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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/ubuntu
3+
{
4+
"name": "Rust",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "docker.io/ubuntu:rolling",
7+
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
"features": {
10+
"ghcr.io/devcontainers/features/rust:1": {}
11+
},
12+
13+
"customizations": {
14+
"vscode": {
15+
"extensions": [
16+
"fill-labs.dependi",
17+
"streetsidesoftware.code-spell-checker",
18+
"streetsidesoftware.code-spell-checker-british-english"
19+
]
20+
}
21+
},
22+
23+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
24+
// "forwardPorts": [],
25+
26+
// Use 'postCreateCommand' to run commands after the container is created.
27+
"postCreateCommand": "apt-get update && apt-get install -y --no-install-recommends libpulse-dev libasound2-dev libdbus-1-dev pkg-config",
28+
29+
"runArgs": [
30+
"--net=host"
31+
// "--device=/dev/snd",
32+
// "-e PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native"
33+
// "-v ${XDG_RUNTIME_DIR}/pulse/native:${XDG_RUNTIME_DIR}/pulse/native",
34+
// "-v ~/.config/pulse/cookie:/root/.config/pulse/cookie"
35+
]
36+
37+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
38+
// "remoteUser": "root"
39+
}

0 commit comments

Comments
 (0)