forked from elephantrobotics/mycobot_ros
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (29 loc) · 767 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (29 loc) · 767 Bytes
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
version: '3.4'
x-app: &common
command: [ "roslaunch mycobot_320 mycobot_320_slider.launch" ]
privileged: true
environment:
PYTHONUNBUFFERED: 1
QT_X11_NO_MITSHM: 1
DISPLAY: $DISPLAY
volumes:
- "/tmp/.X11-unix:/tmp/.X11-unix:rw"
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