Skip to content

Commit a1c2150

Browse files
authored
Merge pull request #192 from pragma-org/jeluard/devcontainer
chore: added basic devcontainer
2 parents 24927b4 + f55d696 commit a1c2150

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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/rust
3+
{
4+
"name": "Rust",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/rust:latest",
7+
8+
// Use 'mounts' to make the cargo cache persistent in a Docker Volume.
9+
// "mounts": [
10+
// {
11+
// "source": "devcontainer-cargo-cache-${devcontainerId}",
12+
// "target": "/usr/local/cargo",
13+
// "type": "volume"
14+
// }
15+
// ]
16+
17+
// Features to add to the dev container. More info: https://containers.dev/features.
18+
// "features": {},
19+
20+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
21+
// "forwardPorts": [],
22+
23+
// Use 'postCreateCommand' to run commands after the container is created.
24+
// "postCreateCommand": "rustc --version",
25+
"onCreateCommand": {
26+
"installDependencies": "sudo apt update && sudo apt -y upgrade && sudo apt install -y clang"
27+
},
28+
29+
// Configure tool-specific properties.
30+
"customizations": {
31+
"vscode": {
32+
"extensions": [
33+
"rust-lang.rust-analyzer"
34+
]
35+
}
36+
}
37+
38+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
39+
// "remoteUser": "root"
40+
}

0 commit comments

Comments
 (0)