Skip to content

Commit

Permalink
feat!: Enable GPU support by default
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This change would require installing nvidia-docker to use the compose file
  • Loading branch information
j3soon committed Nov 4, 2024
1 parent a0d3d9e commit 030f593
Show file tree
Hide file tree
Showing 10 changed files with 82 additions and 82 deletions.
2 changes: 1 addition & 1 deletion aloha_ws/docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ services:
- RCUTILS_COLORIZED_OUTPUT=1
- ROS2_WS=/home/ros2-essentials/aloha_ws
# TODO: Add more environment variables here.
# TODO: Uncomment the lines below to enable GPU support.
# Enable GPU support.
# Reference: https://docs.docker.com/compose/gpu-support/
deploy:
resources:
Expand Down
18 changes: 9 additions & 9 deletions cartographer_ws/docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ services:
- RCUTILS_COLORIZED_OUTPUT=1
- ROS2_WS=/home/ros2-essentials/cartographer_ws
# TODO: Add more environment variables here.
# TODO: Uncomment the lines below to enable GPU support.
# # Reference: https://docs.docker.com/compose/gpu-support/
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [ gpu ]
# Enable GPU support.
# Reference: https://docs.docker.com/compose/gpu-support/
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
volumes:
# Mount local timezone into container.
# Reference: https://stackoverflow.com/questions/57607381/how-do-i-change-timezone-in-a-docker-container
Expand Down
18 changes: 9 additions & 9 deletions gazebo_world_ws/docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ services:
- RCUTILS_COLORIZED_OUTPUT=1
- ROS2_WS=/home/ros2-essentials/gazebo_world_ws
# TODO: Add more environment variables here.
# TODO: Uncomment the lines below to enable GPU support.
# # Reference: https://docs.docker.com/compose/gpu-support/
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [ gpu ]
# Enable GPU support.
# Reference: https://docs.docker.com/compose/gpu-support/
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
volumes:
# Mount local timezone into container.
# Reference: https://stackoverflow.com/questions/57607381/how-do-i-change-timezone-in-a-docker-container
Expand Down
18 changes: 9 additions & 9 deletions husky_ws/docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ services:
- RCUTILS_COLORIZED_OUTPUT=1
- ROS2_WS=/home/ros2-essentials/husky_ws
# TODO: Add more environment variables here.
# TODO: Uncomment the lines below to enable GPU support.
# # Reference: https://docs.docker.com/compose/gpu-support/
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [ gpu ]
# Enable GPU support.
# Reference: https://docs.docker.com/compose/gpu-support/
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
volumes:
# Mount local timezone into container.
# Reference: https://stackoverflow.com/questions/57607381/how-do-i-change-timezone-in-a-docker-container
Expand Down
18 changes: 9 additions & 9 deletions kobuki_ws/docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ services:
- RCUTILS_COLORIZED_OUTPUT=1
- ROS2_WS=/home/ros2-essentials/kobuki_ws
# TODO: Add more environment variables here.
# TODO: Uncomment the lines below to enable GPU support.
# # Reference: https://docs.docker.com/compose/gpu-support/
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [ gpu ]
# Enable GPU support.
# Reference: https://docs.docker.com/compose/gpu-support/
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
volumes:
# Mount local timezone into container.
# Reference: https://stackoverflow.com/questions/57607381/how-do-i-change-timezone-in-a-docker-container
Expand Down
18 changes: 9 additions & 9 deletions orbslam3_ws/docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ services:
- RCUTILS_COLORIZED_OUTPUT=1
- ROS2_WS=/home/ros2-essentials/orbslam3_ws
# TODO: Add more environment variables here.
# TODO: Uncomment the lines below to enable GPU support.
# # Reference: https://docs.docker.com/compose/gpu-support/
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [ gpu ]
# Enable GPU support.
# Reference: https://docs.docker.com/compose/gpu-support/
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
volumes:
# Mount local timezone into container.
# Reference: https://stackoverflow.com/questions/57607381/how-do-i-change-timezone-in-a-docker-container
Expand Down
18 changes: 9 additions & 9 deletions rtabmap_ws/docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ services:
- RCUTILS_COLORIZED_OUTPUT=1
- ROS2_WS=/home/ros2-essentials/rtabmap_ws
# TODO: Add more environment variables here.
# TODO: Uncomment the lines below to enable GPU support.
# # Reference: https://docs.docker.com/compose/gpu-support/
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [ gpu ]
# Enable GPU support.
# Reference: https://docs.docker.com/compose/gpu-support/
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
volumes:
# Mount local timezone into container.
# Reference: https://stackoverflow.com/questions/57607381/how-do-i-change-timezone-in-a-docker-container
Expand Down
18 changes: 9 additions & 9 deletions template_ws/docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ services:
- RCUTILS_COLORIZED_OUTPUT=1
- ROS2_WS=/home/ros2-essentials/template_ws
# TODO: Add more environment variables here.
# TODO: Uncomment the lines below to enable GPU support.
# # Reference: https://docs.docker.com/compose/gpu-support/
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [ gpu ]
# Enable GPU support.
# Reference: https://docs.docker.com/compose/gpu-support/
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
volumes:
# Mount local timezone into container.
# Reference: https://stackoverflow.com/questions/57607381/how-do-i-change-timezone-in-a-docker-container
Expand Down
18 changes: 9 additions & 9 deletions tests/diff_base/docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ services:
- ROS2_WS=/home/ros2-essentials/{PLACEHOLDER}_ws
# TODO: Add more environment variables here.
{PLACEHOLDER_MULTILINE}
# TODO: Uncomment the lines below to enable GPU support.
{PLACEHOLDER_#}# Reference: https://docs.docker.com/compose/gpu-support/
{PLACEHOLDER_#}deploy:
{PLACEHOLDER_#} resources:
{PLACEHOLDER_#} reservations:
{PLACEHOLDER_#} devices:
{PLACEHOLDER_#} - driver: nvidia
{PLACEHOLDER_#} count: all
{PLACEHOLDER_#} capabilities: [ gpu ]
# Enable GPU support.
# Reference: https://docs.docker.com/compose/gpu-support/
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
volumes:
# Mount local timezone into container.
# Reference: https://stackoverflow.com/questions/57607381/how-do-i-change-timezone-in-a-docker-container
Expand Down
18 changes: 9 additions & 9 deletions vlp_ws/docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ services:
- RCUTILS_COLORIZED_OUTPUT=1
- ROS2_WS=/home/ros2-essentials/vlp_ws
# TODO: Add more environment variables here.
# TODO: Uncomment the lines below to enable GPU support.
# # Reference: https://docs.docker.com/compose/gpu-support/
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [ gpu ]
# Enable GPU support.
# Reference: https://docs.docker.com/compose/gpu-support/
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
volumes:
# Mount local timezone into container.
# Reference: https://stackoverflow.com/questions/57607381/how-do-i-change-timezone-in-a-docker-container
Expand Down

0 comments on commit 030f593

Please sign in to comment.