-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (51 loc) · 1.45 KB
/
docker-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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
services:
ros1:
build:
context: .
dockerfile: ros1.Dockerfile
command: roslaunch roscpp_tutorials talker_listener.launch
ros2:
build:
context: .
dockerfile: ros2.Dockerfile
command: ros2 run demo_nodes_cpp talker
bridge:
image: ros:foxy-ros1-bridge
environment:
- "ROS_HOSTNAME=bridge"
- "ROS_MASTER_URI=http://ros1:11311"
command: ros2 run ros1_bridge dynamic_bridge
ubuntu20:
build:
context: .
dockerfile: ubuntu20.Dockerfile
command: /bin/bash
stdin_open: true
tty: true
volumes:
- ./ws_ros2:/ws_ros2
# convenience: make bash history persistent
- ubuntu20_command_history:/commandhistory
rust:
build:
context: .
dockerfile: rust.Dockerfile
stdin_open: true
tty: true
volumes:
- ./ws_rust:/workspace/src/ros2_rust/
- build_artifacts:/workspace/build/
- install_artifacts:/workspace/install/
- log_artifacts:/workspace/log/
# to avoid time skew in saved logs, make sure container time is in sync with host
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
# convenience: make bash history persistent
- rust_command_history:/commandhistory
# named volumes to store build artifacts to avoid re-compilation when recreating the container
volumes:
build_artifacts:
install_artifacts:
log_artifacts:
rust_command_history:
ubuntu20_command_history: