-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathdocker-compose.yml
53 lines (47 loc) · 1.17 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
version: '3.4'
x-app: &common
command: [ "roslaunch ${LAUNCH_TARGET:-mycobot_280 slider_control.launch}" ]
privileged: true
environment:
PYTHONUNBUFFERED: 1
QT_X11_NO_MITSHM: 1
DISPLAY: $DISPLAY
volumes:
- "/tmp/.X11-unix:/tmp/.X11-unix:rw"
- ".:/home/er/catkin_ws/src/mycobot_ros"
build:
context: .
args: &common-args
ROS_DISTRO: "melodic"
PYMYCOBOT_VERSION: ">=2<3"
BASE_IMAGE: nvidia/opengl:1.1-glvnd-runtime-ubuntu18.04
services:
# This configuration builds the project for computers with NVIDIA hardware
nvidia-ros:
<<: *common
runtime: nvidia
# This is the default for computers that don't have nvidia hardware accelerators
ros:
<<: *common
build:
context: .
args:
<<: *common-args
BASE_IMAGE: ubuntu:18.04
nvidia-ros-noetic:
<<: *common
runtime: nvidia
build:
context: .
args:
<<: *common-args
ROS_DISTRO: "noetic"
BASE_IMAGE: nvidia/opengl:1.1-glvnd-runtime-ubuntu18.04
ros-noetic:
<<: *common
build:
context: .
args:
<<: *common-args
ROS_DISTRO: "noetic"
BASE_IMAGE: ubuntu:20.04