Skip to content

Commit 0d2d222

Browse files
committed
Add devcontainer
1 parent b6a3de2 commit 0d2d222

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.166.1/containers/rust/.devcontainer/base.Dockerfile
2+
3+
FROM mcr.microsoft.com/vscode/devcontainers/rust:0-1
4+
5+
# [Optional] Uncomment this section to install additional packages.
6+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
7+
# && apt-get -y install --no-install-recommends <your-package-list-here>

.devcontainer/devcontainer.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.166.1/containers/rust
3+
{
4+
"name": "Rust",
5+
"build": {
6+
"dockerfile": "Dockerfile"
7+
},
8+
"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
9+
10+
// Set *default* container specific settings.json values on container create.
11+
"settings": {
12+
"terminal.integrated.shell.linux": "/bin/bash",
13+
"lldb.executable": "/usr/bin/lldb",
14+
// VS Code don't watch files under ./target
15+
"files.watcherExclude": {
16+
"**/target/**": true
17+
}
18+
},
19+
20+
// Add the IDs of extensions you want installed when the container is created.
21+
"extensions": [
22+
"rust-lang.rust",
23+
"bungcip.better-toml",
24+
"vadimcn.vscode-lldb",
25+
"mutantdino.resourcemonitor"
26+
],
27+
28+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
29+
// "forwardPorts": [],
30+
31+
// Use 'postCreateCommand' to run commands after the container is created.
32+
// "postCreateCommand": "rustc --version",
33+
34+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
35+
"remoteUser": "vscode"
36+
}

0 commit comments

Comments
 (0)