-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
44 lines (37 loc) · 1.61 KB
/
Dockerfile
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
ARG UBUNTU_VERSION=18.04
FROM nvidia/opengl:1.0-glvnd-runtime-ubuntu${UBUNTU_VERSION}
ARG UBUNTU=bionic
ARG ROS_DISTRO=melodic
# ROS & robotpkg packages repository
ADD .docker/repos.key /
RUN apt-get update -qqy && apt-get install -qqy gnupg2 && rm -rf /var/lib/apt/lists \
&& echo "deb http://packages.ros.org/ros/ubuntu ${UBUNTU} main" > /etc/apt/sources.list.d/ros-latest.list \
&& echo "deb [arch=amd64] http://robotpkg.openrobots.org/wip/packages/debian/pub ${UBUNTU} robotpkg" > /etc/apt/sources.list.d/robotpkg.list \
&& echo "deb [arch=amd64] http://robotpkg.openrobots.org/packages/debian/pub ${UBUNTU} robotpkg" >> /etc/apt/sources.list.d/robotpkg.list \
&& apt-key add /repos.key
# environment helpers
ENV ROS_PREFIX=/opt/ros/${ROS_DISTRO} ROBOTPKG_BASE=/opt/openrobots
# required environment variables
ENV PYTHONPATH=${ROBOTPKG_BASE}/lib/python2.7/site-packages:${ROS_PREFIX}/lib/python2.7/dist-packages \
CMAKE_PREFIX_PATH=${ROBOTPKG_BASE}:${ROS_PREFIX} \
LD_LIBRARY_PATH=${ROBOTPKG_BASE}/lib/dynamic-graph-plugins \
QT_X11_NO_MITSHM=1
# talos-integration-tests dependencies
RUN apt-get update -qqy \
&& DEBIAN_FRONTEND=noninteractive apt-get install -qqy \
git \
python-catkin-tools \
python-rosdep \
robotpkg-py27-talos-dev \
&& rm -rf /var/lib/apt/lists
# catkin workspace
WORKDIR /ws
RUN rosdep init \
&& rosdep update \
&& ${ROS_PREFIX}/bin/catkin_init_workspace
# talos-integration-tests build
ADD . /ws/src/talos_integration_tests
RUN catkin config --install \
&& catkin build talos_integration_tests
ENTRYPOINT ["/ws/src/talos_integration_tests/.docker/entrypoint.sh"]
CMD ["/bin/bash"]