Skip to content

Commit 045d8bc

Browse files
Add the devcontainer file, to endow the repository with the capability to work with devcontainers
1 parent 5b70cce commit 045d8bc

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
{
3+
"name": "ros2_rust_dev:latest",
4+
"build": {
5+
"context": "..",
6+
"dockerfile": "../docker/Dockerfile",
7+
"args": {
8+
"XDG_RUNTIME_DIR": "${localEnv:XDG_RUNTIME_DIR}"
9+
}
10+
},
11+
"workspaceFolder": "/home/cuser/workspace",
12+
"runArgs": [
13+
"--network=host",
14+
"--privileged"
15+
],
16+
"containerEnv": {
17+
"DISPLAY": "${localEnv:DISPLAY}",
18+
"TERM": "xterm-256color"
19+
},
20+
21+
"remoteUser": "cuser",
22+
"containerEnv": {
23+
// Convenience, for shell colors, aliases, etc
24+
"SHELL": "/bin/bash"
25+
}
26+
27+
}

0 commit comments

Comments
 (0)