-
Notifications
You must be signed in to change notification settings - Fork 0
/
sitl-compose.yml
43 lines (37 loc) · 1.02 KB
/
sitl-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
services:
sgptools:
image: itskalvik/sgp-tools:sitl-humble-garden
build:
context: ./
platforms:
- "linux/amd64"
- "linux/arm64"
dockerfile: sitl-docker/Dockerfile
args:
- ROS_DISTRO=humble
- GZ_VERSION=garden
# Enabling GPU access with Compose
# https://docs.docker.com/compose/gpu-support/
# deploy:
# resources:
# reservations:
# devices:
# - capabilities: [gpu]
# count: all
environment:
# Set a fancy prompt (See ~/.bashrc in the container)
- TERM=xterm-256color
# WSLg settings
# https://www.reddit.com/r/bashonubuntuonwindows/comments/n2nthu/can_i_use_the_new_wslg_with_docker/
- DISPLAY
- WAYLAND_DISPLAY
- XDG_RUNTIME_DIR
- PULSE_SERVER
volumes:
- ./ros2_ws/src:/home/admin/ros2_ws/src
- /dev:/dev
# WSLg settings
- /mnt/wslg:/mnt/wslg
- /tmp/.X11-unix:/tmp/.X11-unix
network_mode: host
privileged: true