Skip to content

Commit

Permalink
nvidia additions
Browse files Browse the repository at this point in the history
  • Loading branch information
imagidan committed Mar 6, 2024
1 parent 92260f9 commit f41f4df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
FROM ghcr.io/dronolab/px4-ros2-humble:latest

ENV NVIDIA_VISIBLE_DEVICES \
${NVIDIA_VISIBLE_DEVICES:-all}
ENV NVIDIA_DRIVER_CAPABILITIES \
${NVIDIA_DRIVER_CAPABILITIES:+$NVIDIA_DRIVER_CAPABILITIES,}graphics

# Add vscode user with same UID and GID as your host system
# (copied from https://code.visualstudio.com/remote/advancedcontainers/add-nonroot-user#_creating-a-nonroot-user)
ARG USERNAME=thunderhawk
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ services:
- ./:/workspace/thunderhawk
- /tmp/.X11-unix:/tmp/.X11-unix
- /tmp/.Xauthority:/tmp/.Xauthority:rw
devices:
- /dev/dri:/dev/dri
environment:
- QT_X11_NO_MITSHM=1
- ROS_DOMAIN_ID=96
Expand Down

0 comments on commit f41f4df

Please sign in to comment.