Docker Update 5

This commit is contained in:
2026-01-11 00:37:32 +00:00
parent 0b60a29c73
commit f531e3ec41
2 changed files with 11 additions and 9 deletions

View File

@@ -38,21 +38,23 @@ x-common: &common
count: all
capabilities: [ gpu ]
# Environment variables - use XWayland for OpenGL compatibility
# Environment variables - Wayland with GPU
environment:
# X11/XWayland display (better for OpenGL in containers)
# Wayland display
&common-env
- DISPLAY=${DISPLAY:-:0}
- WAYLAND_DISPLAY=${WAYLAND_DISPLAY:-wayland-0}
- XDG_RUNTIME_DIR=/run/user/1000
# X11 fallback
- DISPLAY=${DISPLAY:-:0}
# GPU
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
# Force X11/XCB for Qt (more stable for OpenGL than native Wayland)
- QT_QPA_PLATFORM=xcb
- QT_X11_NO_MITSHM=1
# Qt platform - Wayland first, then X11
- QT_QPA_PLATFORM=wayland
- QT_WAYLAND_DISABLE_WINDOWDECORATION=1
# OpenGL settings
- __GLX_VENDOR_LIBRARY_NAME=nvidia
- LIBGL_ALWAYS_SOFTWARE=0
- __NV_PRIME_RENDER_OFFLOAD=1
# Gazebo paths
- GZ_SIM_SYSTEM_PLUGIN_PATH=/home/pilot/ardupilot_gazebo/build
- GZ_SIM_RESOURCE_PATH=/home/pilot/ardupilot_gazebo/models:/home/pilot/ardupilot_gazebo/worlds:/home/pilot/RDC_Simulation/gazebo/models