2024-09-17 12:30:08 -03:00
|
|
|
services:
|
2024-09-19 14:14:07 -03:00
|
|
|
gui-tools:
|
2024-10-25 14:49:07 -03:00
|
|
|
env_file:
|
|
|
|
- .env
|
2024-09-19 14:14:07 -03:00
|
|
|
build:
|
|
|
|
context: ./guiTools/
|
|
|
|
|
|
|
|
environment:
|
|
|
|
# Display settings
|
2024-11-23 16:05:14 -04:00
|
|
|
DISPLAY: "${DISPLAY}"
|
|
|
|
WAYLAND_DISPLAY: "${WAYLAND_DISPLAY}"
|
|
|
|
# Uncomment below if using X11
|
|
|
|
# QT_QPA_PLATFORM: "${QT_QPA_PLATFORM:-xcb}"
|
|
|
|
XDG_RUNTIME_DIR: "${XDG_RUNTIME_DIR}"
|
|
|
|
ROS_MASTER_URI: "http://ros-master:11311"
|
2024-11-24 15:03:59 -04:00
|
|
|
RMW_IMPLEMENTATION: rmw_cyclonedds_cpp
|
2024-11-23 16:05:14 -04:00
|
|
|
|
2024-09-19 14:14:07 -03:00
|
|
|
volumes:
|
|
|
|
# X11 socket
|
|
|
|
- /tmp/.X11-unix:/tmp/.X11-unix
|
2024-09-19 14:33:29 -03:00
|
|
|
- ${XAUTHORITY:-~/.Xauthority}:/root/.Xauthority
|
2024-09-19 14:14:07 -03:00
|
|
|
# Wayland socket
|
2024-10-18 14:08:48 -03:00
|
|
|
#- ${XDG_RUNTIME_DIR}/wayland-0:${XDG_RUNTIME_DIR}/wayland-0
|
2024-11-23 16:05:14 -04:00
|
|
|
# Access to GPU devices
|
2024-09-19 14:14:07 -03:00
|
|
|
- /dev/dri:/dev/dri
|
2024-11-23 16:05:14 -04:00
|
|
|
# Code and configuration
|
2024-11-05 14:49:32 -04:00
|
|
|
- ./guiTools/spiri_sdk_guitools/:/app/spiri_sdk_guitools/
|
2024-11-07 12:18:53 -04:00
|
|
|
- ./robots:/robots
|
2024-11-05 14:49:32 -04:00
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2024-11-23 16:05:14 -04:00
|
|
|
|
2024-09-19 14:14:07 -03:00
|
|
|
devices:
|
2024-11-23 16:05:14 -04:00
|
|
|
# Provide access to GPU devices (supports non-NVIDIA GPUs)
|
2024-09-19 14:14:07 -03:00
|
|
|
- /dev/dri:/dev/dri
|
2024-11-23 16:05:14 -04:00
|
|
|
|
2024-10-25 14:49:07 -03:00
|
|
|
network_mode: host
|
2024-11-05 10:29:34 -04:00
|
|
|
ports:
|
|
|
|
- 8923:8923
|
2024-09-19 14:14:07 -03:00
|
|
|
ipc: host
|
2024-11-23 16:05:14 -04:00
|
|
|
privileged: true # Required for GPU access
|
2024-09-19 14:14:07 -03:00
|
|
|
|
2024-11-23 16:05:14 -04:00
|
|
|
# deploy:
|
|
|
|
# resources:
|
|
|
|
# reservations:
|
|
|
|
# devices:
|
|
|
|
# - driver: cdi # Optional for advanced resource scheduling
|
|
|
|
# device_ids:
|
|
|
|
# - "all" # Use "all" for all available GPUs
|