Skip to content

Commit ff0798a

Browse files
authored
Added docker training material (#10)
slides + example of docker deployment
1 parent 0dd0947 commit ff0798a

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
version: "3.7"
2+
3+
x-trainingShanghai: &trainingShanghai
4+
image: icubteamcode/superbuild:v2022.05.2_sources
5+
environment:
6+
- YARP_FORWARD_LOG_ENABLE=1
7+
- DISPLAY=${DISPLAY}
8+
- QT_X11_NO_MITSHM=1
9+
- XAUTHORITY=/root/.Xauthority
10+
volumes:
11+
- "${HOME}/.config/yarp:/root/.config/yarp"
12+
- "${HOME}/my_projects/training/iCubShanghai/shared_files:/root/shared_files"
13+
- "/tmp/.X11-unix:/tmp/.X11-unix"
14+
- "${XAUTHORITY}:/root/.Xauthority"
15+
working_dir: /root/shared_files
16+
#ports:
17+
# - "10000:10000"
18+
network_mode: "host"
19+
#privileged: true
20+
21+
22+
23+
x-develop: &develop
24+
image: icubteamcode/superbuild:v2022.05.2_sources
25+
environment:
26+
- YARP_FORWARD_LOG_ENABLE=1
27+
volumes:
28+
- "${HOME}/.config/yarp:/root/.config/yarp"
29+
- "${HOME}/my_projects/training/iCubShanghai/shared_files:/root/shared_files"
30+
working_dir: /root/shared_files
31+
#ports:
32+
# - "10000:10000"
33+
network_mode: "host"
34+
privileged: true
35+
tty: true
36+
stdin_open: true
37+
38+
39+
40+
41+
42+
services:
43+
yserver:
44+
<<: *trainingShanghai
45+
command: yarpserver --read
46+
47+
yplayer:
48+
<<: *trainingShanghai
49+
restart: on-failure
50+
depends_on:
51+
- yserver
52+
command: yarpdataplayer
53+
54+
yview:
55+
<<: *trainingShanghai
56+
restart: on-failure
57+
depends_on:
58+
- yserver
59+
command: yarpview
60+
61+
yconnect:
62+
<<: *trainingShanghai
63+
restart: on-failure
64+
depends_on:
65+
- yview
66+
- yplayer
67+
command: sh -c "yarp wait /icub/camcalib/left/out; yarp connect /icub/camcalib/left/out /yarpview/img:i"
68+
69+
myapp:
70+
<<: *develop
71+
4.45 MB
Binary file not shown.

0 commit comments

Comments
 (0)