Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .devcontainer/nvidia/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ FROM ghcr.io/robotic-decision-making-lab/blue:jazzy-desktop-nvidia
# add new dependencies during development
ENV USERNAME=ubuntu
ENV USER_WORKSPACE=/home/$USERNAME/ws_blue
ENV USER_GID=1000
ENV USER_UID=1000
WORKDIR $USER_WORKSPACE

COPY --chown=$USER_UID:$USER_GID . src/blue

ENV ROS2_LATEST_ARCHIVE_KEYRING="/usr/share/keyrings/ros2-latest-archive-keyring.gpg"
RUN sudo rm -f ${ROS2_LATEST_ARCHIVE_KEYRING}
RUN sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o ${ROS2_LATEST_ARCHIVE_KEYRING}
Comment on lines +13 to +16
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be needed. See docker-library/official-images#19162

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@evan-palmer I can raise the PR to main instead. The main isn't working for me due to ardupilot_gz issue in rolling. In regards to Nvidia GPU access issue, main is working fine.

Are you suggesting installing dedicated .deb for setting up gpg key? Or would you like me to remove this altogether?


RUN sudo apt-get -q update \
&& sudo apt-get -q -y upgrade \
&& rosdep update \
&& rosdep install -y --from-paths src --ignore-src --rosdistro ${ROS_DISTRO} --skip-keys="gz-transport12 gz-sim7 gz-math7 gz-msgs9 gz-plugin2" \
&& sudo apt-get autoremove -y \
Expand Down
8 changes: 7 additions & 1 deletion .devcontainer/nvidia/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"--privileged",
"--volume=/tmp/.X11-unix:/tmp/.X11-unix",
"--volume=/mnt/wslg:/mnt/wslg",
"--runtime=nvidia",
"--gpus=all"
],
"containerEnv": {
Expand All @@ -22,7 +23,12 @@
"XDG_RUNTIME_DIR": "${localEnv:XDG_RUNTIME_DIR}",
"PULSE_SERVER": "${localEnv:PULSE_SERVER}",
"LIBGL_ALWAYS_SOFTWARE": "1",
"QT_X11_NO_MITSHM": "1"
"QT_X11_NO_MITSHM": "1",
"NVIDIA_VISIBLE_DEVICES": "all",
"NVIDIA_DRIVER_CAPABILITIES": "all",
"__GLX_VENDOR_LIBRARY_NAME": "nvidia",
"__NV_PRIME_RENDER_OFFLOAD": "1",
"__VK_LAYER_NV_optimus": "NVIDIA_only"
},
"customizations": {
"vscode": {
Expand Down