Skip to content
Snippets Groups Projects
Commit 7a084640 authored by Krzysztof Wojciechowski's avatar Krzysztof Wojciechowski
Browse files

Merge branch 'bugfix/sudo-and-cuda-vision' into 'humble-devel'

Add vision cuda dev container | Add sudo to `rm -rf`

See merge request !19
parents 2f048d94 47e6051d
No related branches found
No related tags found
1 merge request!19Add vision cuda dev container | Add sudo to `rm -rf`
Pipeline #49331 passed
......@@ -57,7 +57,7 @@ RUN bash install_dependency.sh stack-of-tasks/eigenpy/v3.10.0/1 \
&& bash install_dependency.sh humanoid-path-planner/hpp-environments/v6.0.0/1 \
&& bash install_dependency.sh humanoid-path-planner/hpp-pinocchio/v6.0.0/1 \
&& bash install_dependency.sh humanoid-path-planner/hpp-constraints/v6.0.0/1 \
# For some reason without `sudo` proxsuite doesn't find nanobind
# For some reason without `sudo` ProxSuite doesn't find nanobind
&& sudo bash install_dependency.sh Simple-Robotics/proxsuite/devel/1 \
&& bash install_dependency.sh humanoid-path-planner/hpp-core/v6.0.0/1 \
&& bash install_dependency.sh humanoid-path-planner/hpp-corbaserver/v6.0.0/1 \
......@@ -73,7 +73,8 @@ RUN bash install_dependency.sh stack-of-tasks/eigenpy/v3.10.0/1 \
# Remove folders with meshes and binary data to reduce image size
&& rm -rf example-robot-data \
&& rm -rf pinocchio/models \
&& rm -rf proxsuite/test/data
# ProxSuite files require `sudo` to be removed
&& sudo rm -rf proxsuite/test/data
ENV PATH=/usr/local/bin:${PATH}
ENV LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH}
......
......@@ -30,7 +30,7 @@
"target": "/home/gepetto/ros2_ws/setup.sh",
"type": "bind"
},
// Enable sceen acess
// Enable screen access
{
"source": "/tmp/.X11-unix",
"target": "/tmp/.X11-unix",
......
......@@ -30,7 +30,7 @@
"target": "/home/gepetto/ros2_ws/setup.sh",
"type": "bind"
},
// Enable sceen acess
// Enable screen access
{
"source": "/tmp/.X11-unix",
"target": "/tmp/.X11-unix",
......
{
"name": "gepetto-devcontainer",
// Uncomment ``build`` and comment out ``image`` to build from source
// "build": {
// "dockerfile": "Dockerfile",
// "context": "."
// },
"image": "gitlab.laas.fr:4567/agimus-project/agimus_dev_container:humble-devel-vision-cuda",
"initializeCommand": "xhost +local:docker",
"containerEnv": {
"DISPLAY": "${localEnv:DISPLAY}",
"QT_X11_NO_MITSHM": "1",
// NVIDIA related ENV variables make no difference
// in case no discrete GPU is present in the system
"NVIDIA_DRIVER_CAPABILITIES": "all",
"__NV_PRIME_RENDER_OFFLOAD": "1",
"__GLX_VENDOR_LIBRARY_NAME": "nvidia"
},
"remoteUser": "gepetto",
"privileged": true,
"mounts": [
// Mount the workspace
{
"source": "${localWorkspaceFolder}/.devcontainer/scripts/build.sh",
"target": "/home/gepetto/ros2_ws/build.sh",
"type": "bind"
},
{
"source": "${localWorkspaceFolder}/.devcontainer/scripts/setup.sh",
"target": "/home/gepetto/ros2_ws/setup.sh",
"type": "bind"
},
// Enable screen access
{
"source": "/tmp/.X11-unix",
"target": "/tmp/.X11-unix",
"type": "bind"
},
{
"source": "/dev/dri",
"target": "/dev/dri",
"type": "bind"
},
// Presist bash history
{
"source": "${localWorkspaceFolderBasename}-bashhistory",
"target": "/commandhistory",
"type": "volume"
}
],
"workspaceFolder": "/home/gepetto/ros2_ws/src",
"workspaceMount": "source=${localWorkspaceFolder},target=/home/gepetto/ros2_ws/src,type=bind,consistency=cached",
"runArgs": [
"--ipc=host",
"--net=host"
],
"hostRequirements": {
"gpu": true
},
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash"
}
},
"terminal.integrated.defaultProfile.linux": "bash"
},
"extensions": [
"ms-vscode.cpptools-extension-pack",
"ms-python.python",
"ms-python.black-formatter",
"ms-python.isort",
"ms-toolsai.jupyter",
"ms-iot.vscode-ros",
"redhat.vscode-yaml",
"redhat.vscode-xml",
"twxs.cmake",
"ajshort.msg",
"xaver.clang-format",
"njpwerner.autodocstring",
"cschlosser.doxdocgen",
"streetsidesoftware.code-spell-checker"
]
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment