-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
58 lines (58 loc) · 1.78 KB
/
docker-compose.yaml
File metadata and controls
58 lines (58 loc) · 1.78 KB
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
services:
carla_headless:
extends: carla_core
command: /bin/bash ./CarlaUnreal.sh -RenderOffScreen --ros2
carla:
extends: carla_core
command: /bin/bash ./CarlaUnreal.sh --ros2
carla_core:
image: carlasim/carla:0.10.0
container_name: carla
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
network_mode: host
healthcheck:
test: ["CMD", "python3", "-c", "import socket; s=socket.socket(); s.settimeout(2); s.connect(('localhost', 2000)); s.close()"]
interval: 5s
retries: 30
start_period: 30s
timeout: 5s
environment:
- FASTRTPS_DEFAULT_PROFILES_FILE=./fastrtps-profile.xml
- DISPLAY=${DISPLAY}
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
- RMW_IMPLEMENTATION=rmw_fastrtps_cpp
#command: /bin/bash ./CarlaUnreal.sh --ros2
runtime: nvidia
carla_bridge:
extends: carla_bridge_core
command: /bin/bash -c "cd /tmp/carla_bridge; python ros2.py -f stack.json"
depends_on:
carla:
condition: service_healthy
carla_bridge_headless:
extends: carla_bridge_core
command: /bin/bash -c "cd /tmp/carla_bridge; python ros2.py -f stack.json"
depends_on:
carla_headless:
condition: service_healthy
carla_bridge_core:
build:
context: .
dockerfile: ./Dockerfile.carla_bridge
network: host
image: adore_carla_rosbridge:latest
container_name: carla_ros_bridge
runtime: nvidia
privileged: true
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- ./:/tmp/carla_bridge/
network_mode: host
environment:
- FASTRTPS_DEFAULT_PROFILES_FILE=./fastrtps-profile.xml
- RMW_IMPLEMENTATION=rmw_fastrtps_cpp
- DISPLAY=${DISPLAY}
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all