-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathdocker-compose.yaml
128 lines (119 loc) · 3.13 KB
/
docker-compose.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
version: "3.4"
services:
mapserver:
image: camptocamp/mapserver
network_mode: host
environment:
- NAIP_GDOWN_ID=16M_kbsLpF3t87KC2n9YgqGEBA5h0lG7U
- OSM_GDOWN_ID=1snGYjWxs71m6I-qxKsmUzch_bAfQtrEW
volumes:
- $PWD/docker/mapserver/mapfiles/mapserver.map:/etc/mapserver/mapserver.map:ro
- $PWD/docker/mapserver/setup_mapserver.sh:/etc/mapserver/setup_mapserver.sh:ro
entrypoint: /etc/mapserver/setup_mapserver.sh
mapproxy:
build:
context: docker/mapproxy
dockerfile: Dockerfile
network_mode: host
micro-ros-agent:
image: microros/micro-ros-agent:foxy
command: udp4 -p 8888
network_mode: host
volumes:
- /dev/shm:/dev/shm
mavros:
build:
context: docker/mavros
dockerfile: Dockerfile
environment:
- FASTRTPS_DEFAULT_PROFILES_FILE=/disable_shared_memory.xml
network_mode: host
volumes:
- /dev/shm:/dev/shm
qgc:
build:
context: docker/qgc
dockerfile: Dockerfile
environment:
- QT_X11_NO_MITSHM=1
- DISPLAY=${DISPLAY}
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:ro
- /dev/shm:/dev/shm
- /dev/dri:/dev/dri
network_mode: host
stdin_open: true
tty: true
gisnav:
build:
context: docker/gisnav
dockerfile: Dockerfile
environment:
- QT_X11_NO_MITSHM=1
- DISPLAY=${DISPLAY}
- FASTRTPS_DEFAULT_PROFILES_FILE=/disable_shared_memory.xml
volumes:
- /dev/dri:/dev/dri
network_mode: host
stdin_open: true
tty: true
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [ gpu ]
command: >
bash -c "source /opt/ros/foxy/setup.bash && source ~/colcon_ws/install/setup.bash &&
export LD_PRELOAD=$(find $(pip3 show torch |grep Location: |cut -d' ' -f 2)/torch/lib -name 'libgomp*') &&
ros2 launch gisnav px4.launch.py"
px4:
build:
context: docker/px4
dockerfile: Dockerfile
environment:
- QT_X11_NO_MITSHM=1
- DISPLAY=${DISPLAY}
- GAZEBO_HEADLESS=${GAZEBO_HEADLESS}
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:ro
- /dev/shm:/dev/shm
- /dev/dri:/dev/dri
network_mode: host
stdin_open: true
tty: true
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [ gpu ]
#ardupilot:
# build:
# context: https://github.com/ArduPilot/ardupilot.git
# dockerfile: https://raw.githubusercontent.com/ArduPilot/ardupilot/master/Dockerfile
ardupilot:
build:
context: docker/ardupilot
dockerfile: Dockerfile
environment:
- QT_X11_NO_MITSHM=1
- DISPLAY=${DISPLAY}
- GAZEBO_HEADLESS=${GAZEBO_HEADLESS}
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:ro
- /dev/shm:/dev/shm
- /dev/dri:/dev/dri
network_mode: host
stdin_open: true
tty: true
#privileged: True
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [ gpu ]