-
Notifications
You must be signed in to change notification settings - Fork 0
/
devcontainer.json
43 lines (43 loc) · 1.51 KB
/
devcontainer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
"name": "ROS 2 Development Container",
"privileged": true,
"remoteUser": "pulak",
"build": {
"dockerfile": "Dockerfile",
"args": {
"USERNAME": "pulak"
}
},
"workspaceFolder": "/home/ws",
"workspaceMount": "source=${localWorkspaceFolder},target=/home/ws/src,type=bind",
"customizations": {
"vscode": {
"extensions":[
"ms-vscode.cpptools",
"ms-vscode.cpptools-themes",
"twxs.cmake",
"donjayamanne.python-extension-pack",
"eamodio.gitlens",
"ms-iot.vscode-ros"
]
}
},
"containerEnv": {
"DISPLAY": "${localEnv:DISPLAY}",
"ROS_AUTOMATIC_DISCOVERY_RANGE": "LOCALHOST",
"ROS_DOMAIN_ID": "42"
},
"runArgs": [
"--net=host",
"-e", "DISPLAY=${env:DISPLAY}"
],
"mounts": [
"source=/tmp/.X11-unix,target=/tmp/.X11-unix,type=bind,consistency=cached",
"source=/home/pulak/.Xauthority,target=/home/ws/.Xauthority,type=bind,consistency=cached",
"source=/dev/dri,target=/dev/dri,type=bind,consistency=cached",
"source=${localWorkspaceFolder}/../cache/humble/build,target=/home/ws/build,type=bind",
"source=${localWorkspaceFolder}/../cache/humble/install,target=/home/ws/install,type=bind",
"source=${localWorkspaceFolder}/../cache/humble/log,target=/home/ws/log,type=bind"
],
"postCreateCommand": "sudo rosdep update && sudo rosdep install --rodistro humble --from-paths src -i -r -y && sudo chown -R $(whoami) /home/ws/"
}