forked from interaction-lab/HARMONI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-harmoni-dev.yml
207 lines (201 loc) · 6.27 KB
/
docker-compose-harmoni-dev.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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
version: "3.7"
services:
harmoni_core:
container_name: harmoni_core
build:
context: .
dockerfile: dockerfiles/dev/harmoni/dockerfile
network: host
image: cmbirmingham/harmoni-dev:latest
init: true
environment:
DISPLAY: $DISPLAY
QT_GRAPHICSSYSTEM: native
ROS_DISTRO: kinetic
ROS_MASTER_URI: http://172.18.3.4:11311
IS_DOCKER_ENV: "true"
ROS_HOSTNAME: harmoni_core
CATKIN_WS: harmoni_catkin_ws
privileged: true
networks:
ros_net:
ipv4_address: 172.18.3.4
hostname: harmoni_core
ports:
- "11312:11312"
- "33691:33691"
- "8081:8081"
devices:
- /dev/dri:/dev/dri
#- /dev/snd:/dev/snd
- /dev/video0:/dev/video0
volumes:
- harmoni_catkin_ws:/root/harmoni_catkin_ws
- ../HARMONI/:/root/local_mount/HARMONI/
# IDEs
- ~/.aws:/root/.aws/
# Configuration
- ./dockerfiles/config/setup_script.sh:/root/.setup_script.sh
- ./dockerfiles/config/dev_setup_script.sh:/root/.dev_setup_script.sh
# Other
- /tmp/.X11-unix:/tmp/.X11-unix
- ~/.config/terminator/config:/root/.config/terminator/config
- ~/.gitconfig:/root/.gitconfig:ro
- ~/.ssh/:/root/.ssh:ro
- ~/.vimrc:/root/.vimrc:ro
- ~/.vim/:/root/.vim/:ro
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
working_dir: /root/harmoni_catkin_ws/src/HARMONI
command: bash -c "
terminator -ue \"echo 'Entering harmoni_core Container... \\n start with roscore and rlharmoniservices' && bash\""
ros_w2l:
container_name: ros_w2l
build:
context: .
dockerfile: dockerfiles/dev/w2l/dockerfile
network: host
image: cmbirmingham/w2l-dev:latest
init: true
environment:
DISPLAY: $DISPLAY
QT_GRAPHICSSYSTEM: native
ROS_DISTRO: kinetic
IS_DOCKER_ENV: "true"
CATKIN_WS: harmoni_catkin_ws
ROS_HOSTNAME: ros_w2l
ROS_MASTER_URI: http://172.18.3.4:11311
depends_on:
- "harmoni_core"
privileged: true
# network_mode: host
networks:
ros_net:
ipv4_address: 172.18.3.3
hostname: ros_w2l
ports:
- "1022:22"
devices:
- /dev/dri:/dev/dri
#- /dev/snd:/dev/snd
- /dev/video0:/dev/video0
volumes:
- ../model/w2l:/root/model/w2l/
- wav2letter:/root/wav2letter
- harmoni_catkin_ws:/root/harmoni_catkin_ws
- ../HARMONI/:/root/local_mount/HARMONI/
# Configuration
- ./dockerfiles/config/setup_script.sh:/root/.setup_script.sh
- ./dockerfiles/config/dev_setup_script.sh:/root/.dev_setup_script.sh
# Other
- /tmp/.X11-unix:/tmp/.X11-unix
- ~/.config/terminator/config:/root/.config/terminator/config
- ~/.gitconfig:/root/.gitconfig:ro
- ~/.ssh/:/root/.ssh:ro
- ~/.vimrc:/root/.vimrc:ro
- ~/.vim/:/root/.vim/:ro
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
working_dir: /root/harmoni_catkin_ws/src/HARMONI
command: bash -c "
terminator -ue \"echo 'Entering ros_w2l Container... \\n start with rlspeech' && bash\" "
harmoni_visual_detector:
container_name: harmoni_visual_detector
build:
context: .
dockerfile: dockerfiles/dev/harmoni/dockerfile
network: host
image: cmbirmingham/harmoni-dev:latest
init: true
environment:
DISPLAY: $DISPLAY
QT_GRAPHICSSYSTEM: native
ROS_DISTRO: kinetic
IS_DOCKER_ENV: "true"
CATKIN_WS: harmoni_catkin_ws
ROS_HOSTNAME: harmoni_visual_detector
ROS_MASTER_URI: http://172.18.3.4:11311
privileged: true
networks:
ros_net:
ipv4_address: 172.18.3.2
hostname: harmoni_visual_detector
depends_on:
- "harmoni_core"
- "harmoni_hardware"
devices:
- /dev/dri:/dev/dri
#- /dev/snd:/dev/snd
- /dev/video0:/dev/video0
volumes:
- ../HARMONI/:/root/local_mount/HARMONI/
# Configuration
- ./dockerfiles/config/setup_script.sh:/root/.setup_script.sh
- ./dockerfiles/config/dev_setup_script.sh:/root/.dev_setup_script.sh
# Other
- /tmp/.X11-unix:/tmp/.X11-unix
- ~/.config/terminator/config:/root/.config/terminator/config
- ~/.gitconfig:/root/.gitconfig:ro
- ~/.ssh/:/root/.ssh:ro
- ~/.vimrc:/root/.vimrc:ro
- ~/.vim/:/root/.vim/:ro
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
working_dir: /root/harmoni_catkin_ws/src/HARMONI
command: bash -c "
terminator -ue \"cd ../HARMONI && echo 'Entering harmoni_visual_detector Container... \\n start with rlfacedetect' && bash\""
harmoni_hardware:
container_name: harmoni_hardware
build:
context: .
dockerfile: dockerfiles/dev/harmoni/dockerfile
network: host
image: cmbirmingham/harmoni-dev:latest
init: true
environment:
DISPLAY: $DISPLAY
QT_GRAPHICSSYSTEM: native
ROS_DISTRO: kinetic
IS_DOCKER_ENV: "true"
CATKIN_WS: harmoni_catkin_ws
ROS_HOSTNAME: harmoni_hardware
ROS_MASTER_URI: http://172.18.3.4:11311
privileged: true
networks:
ros_net:
ipv4_address: 172.18.3.5
hostname: ros_hardware
depends_on:
- "harmoni_core"
devices:
- /dev/dri:/dev/dri
- /dev/snd:/dev/snd
- /dev/video0:/dev/video0
volumes:
- ../HARMONI/:/root/local_mount/HARMONI/
# Configuration
- ./dockerfiles/config/setup_script.sh:/root/.setup_script.sh
- ./dockerfiles/config/dev_setup_script.sh:/root/.dev_setup_script.sh
- ./dockerfiles/config/asoundrc:/root/.asoundrc
# Other
- /tmp/.X11-unix:/tmp/.X11-unix
- ~/.config/terminator/config:/root/.config/terminator/config
- ~/.gitconfig:/root/.gitconfig:ro
- ~/.ssh/:/root/.ssh:ro
- ~/.vimrc:/root/.vimrc:ro
- ~/.vim/:/root/.vim/:ro
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
working_dir: /root/harmoni_catkin_ws/src/HARMONI
command: bash -c "
terminator -ue \"cd ../HARMONI && echo 'Entering harmoni_hardware Container... \\n start with rlhardwareservices' && bash\""
networks:
ros_net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.18.3.0/24
volumes:
harmoni_catkin_ws:
wav2letter: