-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
77 lines (75 loc) · 2.3 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
version: "3.8"
services:
######################################################################################
## Container for ROS-Devel Workspace
## command: sudo docker-compose up ros-devel
## Args: - ROS_DISTRIBUTION=kinetic | melodic | noetic
## - BUILD_TYPE= devel | install
######################################################################################
ros-devel-snake:
build:
context: .
dockerfile: Dockerfile.ros
args:
- ROS_DISTRIBUTION=kinetic
- BUILD_TYPE=devel
container_name: ros-devel-snake
stdin_open: true
tty: true
network_mode: "host"
volumes:
- "./src:/root/catkin_ws/src:rw"
ports:
- "11311:11311"
- "19997:19997"
# devices:
# - /dev/ttyACM0:/dev/ttyACM0
# - /dev/input/js0
command: bash
######################################################################################
## Container for ROS-Install Workspace
## command: sudo docker-compose up ros-install
## Args: - ROS_DISTRIBUTION=kinetic | melodic | noetic
## - BUILD_TYPE= devel | install
######################################################################################
ros-install-snake:
build:
context: .
dockerfile: Dockerfile.ros
args:
- ROS_DISTRIBUTION=kinetic
- BUILD_TYPE=install
container_name: ros-install-snake
stdin_open: true
tty: true
network_mode: "host"
environment:
- ROS_DISTRO=kinetic
volumes:
- "./src:/root/catkin_ws/src:rw"
ports:
- "11311:11311"
- "19997:19997"
devices:
- /dev/ttyACM0:/dev/ttyACM0
- /dev/input/js0
######################################################################################
## Container for vrep
## command: export UID=$(id -u) && export GID=$(id -g)
## sudo UID=${UID} GID=${GID} docker-compose up vrep
######################################################################################
vrep:
build:
context: .
dockerfile: Dockerfile.vrep
container_name: vrep
stdin_open: true
tty: true
user: "${UID}:${GID}"
environment:
- "DISPLAY"
volumes:
- "/tmp/.X11-unix:/tmp/.X11-unix:rw"
- "/etc/group:/etc/group:ro"
- "/etc/shadow:/etc/shadow:ro"
command: xvfb-run vrep.sh