-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (76 loc) · 2.41 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
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
version: '3'
services:
vnc: &vnc
image: registry.gitlab.com/acrome-colab/riders-poc/f1tenth-riders-quickstart/vnc:latest
build:
context: .
dockerfile: compose/vnc/Dockerfile
args:
- PARENT=ros:noetic-robot-focal
- ROS_DISTRO=noetic
roscore: &roscore
image: registry.gitlab.com/acrome-colab/riders-poc/f1tenth-riders-quickstart/roscore:latest
build:
context: compose/roscore
args:
- PARENT=registry.gitlab.com/acrome-colab/riders-poc/f1tenth-riders-quickstart/vnc:latest
roscore-dev:
<<: *roscore
volumes:
- ./compose/roscore/start.sh:/start.sh
stdin_open: true
ports:
# expose ROSCORE port to Out
- 11311:11311
bridge: &bridge
image: registry.gitlab.com/acrome-colab/riders-poc/f1tenth-riders-quickstart/bridge:latest
build:
context: .
dockerfile: compose/bridge/Dockerfile
args:
- PARENT=registry.gitlab.com/acrome-colab/riders-poc/f1tenth-riders-quickstart/vnc:latest
bridge-dev:
<<: *bridge
stdin_open: true
ports:
- 6080:6080
volumes:
- ./f1tenth_gym_ros:/catkin_ws/src/f1tenth_gym_ros
- ./compose/bridge/f1tenth.rviz:/f1tenth.rviz
- ./compose/bridge/start.sh:/start.sh
environment:
- PYTHONUNBUFFERED=1
- ROS_MASTER_URI=http://host.docker.internal:11311
- RACE_MAP_PATH=${RACE_MAP_PATH}
- RACE_MAP_IMG_EXT=${RACE_MAP_IMG_EXT}
# Scenario: 0 for single car timed trial (qualifying), 1 for dual car racing (grand prix)
- RACE_SCENARIO=0
- EGO_ID=${F1TENTH_AGENT_NAME}
# Ignored if RACE_SCENARIO=0, used if RACE_SCENARIO=1
- OPP_ID=${F1TENTH_OPP_NAME}
#
# DO NOT CHANGE THIS CODE
# IF you want to update your agent, simply use Dockerfile
#
agent: &agent
image: ${F1TENTH_AGENT_IMAGE}
build:
context: .
dockerfile: compose/agent/Dockerfile
args:
- PARENT=registry.gitlab.com/acrome-colab/riders-poc/f1tenth-riders-quickstart/roscore:latest
agent-dev:
<<: *agent
environment:
- PYTHONUNBUFFERED=1
- ROS_MASTER_URI=http://host.docker.internal:11311
- F1TENTH_AGENT_NAME=${F1TENTH_AGENT_NAME}
volumes:
- ./pkg:/catkin_ws/src/pkg
# opp-dev:
# <<: *agent
# environment:
# - ROS_MASTER_URI=http://host.docker.internal:11311
# - F1TENTH_AGENT_NAME=${F1TENTH_OPP_NAME}
# volumes:
# - ./pkg:/catkin_ws/src/pkg