8000 Add devcontainer configuration · uutils/coreutils@481765a · GitHub
[go: up one dir, main page]

Skip to content {"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}

Commit 481765a

Browse files
committed
Add devcontainer configuration
Adds basic devcontainer configuration using Microsoft's rust:1-1-bookworm container. The existing recommended extensions are included.
1 parent 4f3d7da commit 481765a

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

.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:1-1-bookworm",
7+
"customizations": {
8+
"vscode": {
9+
"extensions": [
10+
// cspell:disable-next-line
11+
"foxundermoon.shell-format",
12+
"streetsidesoftware.code-spell-checker"
13+
]
14+
}
15+
},
16+
17+
// Use 'mounts' to make the cargo cache persistent in a Docker Volume.
18+
// "mounts": [
19+
// {
20+
// "source": "devcontainer-cargo-cache-${devcontainerId}",
21+
// "target": "/usr/local/cargo",
22+
// "type": "volume"
23+
// }
24+
// ]
25+
26+
// Features to add to the dev container. More info: https://containers.dev/features.
27+
// "features": {},
28+
29+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
30+
// "forwardPorts": [],
31+
32+
// Use 'postCreateCommand' to run commands after the container is created.
33+
"postCreateCommand": "./.devcontainer/postCreateCommand.sh"
34+
35+
// Configure tool-specific properties.
36+
// "customizations": {},
37+
38+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
39+
// "remoteUser": "root"
40+
}

.devcontainer/postCreateCommand.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
sudo apt update && sudo apt install -y --no-install-recommends \
4+
clang

.vscode/cspell.dictionaries/jargon.wordlist.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ denoland
2828
deque
2929
dequeue
3030
dev
31+
devcontainer
32+
devcontainers
3133
devs
3234
discoverability
3335
duplicative

0 commit comments

Comments
 (0)
0