Skip to content

Commit

Permalink
add devcontainer file
Browse files Browse the repository at this point in the history
  • Loading branch information
FranekStark committed Feb 11, 2025
1 parent 2b86077 commit 16008b9
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"name": "dfki-quad Devcontainer",
"privileged": true,
"build": {
"dockerfile": "${localWorkspaceFolder}/docker/Dockerfile",
"args": {
"HW_ARCH":"x86_64",
"GO2_NETWORK_INTERFACE":"enp0s31f6"
}
},
"workspaceFolder": "/root/ros2_ws",
"workspaceMount": "source=${localWorkspaceFolder}/ws/src,target=/root/ros2_ws/src,type=bind",
"customizations": {
"vscode": {
"extensions":[
"ms-vscode.cpptools",
"ms-vscode.cpptools-themes",
"ms-vscode.cpptools-extension-pack",
"twxs.cmake",
"donjayamanne.python-extension-pack",
"eamodio.gitlens",
"ms-iot.vscode-ros",
"xaver.clang-format",
"ms-vscode.cmake-tools",
"dotjoshjohnson.xml"
]
}
},
"containerEnv": {
"DISPLAY": "unix:0",
"ROS_AUTOMATIC_DISCOVERY_RANGE": "LOCALHOST",
"ROS_DOMAIN_ID": "42"
},
"runArgs": [
"--net=host",
"--pid=host",
"--ipc=host",
"-e", "DISPLAY=${env:DISPLAY}",
"--env=QT_X11_NO_MITSHM=1",
"--device=/dev:/dev",
"--device=/dev/input:/dev/input",
"--device=/dev/ttyACM0:/dev/ttyACM0"
],
"mounts": [
"source=/tmp/.X11-unix,target=/tmp/.X11-unix,type=bind,consistency=cached",
"source=/dev/dri,target=/dev/dri,type=bind,consistency=cached",
"source=${localWorkspaceFolder}/ws/.clang-format,target=/root/ros2_ws/.clang-format,type=bind"
],
"postCreateCommand": "cbg"
}

0 comments on commit 16008b9

Please sign in to comment.