-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
45 lines (24 loc) · 809 Bytes
/
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
45
FROM ros:kinetic-ros-base-xenial
ENV PACKAGE example
RUN apt-get update && apt-get upgrade -y && apt-get install -y git python python-pip default-jdk-headless gradle
RUN pip install --upgrade pip
WORKDIR /srv/
RUN git clone https://github.com/eProsima/Fast-RTPS
WORKDIR /srv/Fast-RTPS
# eProsima Fast-RTPS v1.7.2
RUN git checkout a8691a40be6b8460b01edde36ad8563170a3a35a
RUN mkdir -p Fast-RTPS/build
WORKDIR /srv/Fast-RTPS/build
RUN cmake -DTHIRDPARTY=ON -DBUILD_JAVA=ON ..
RUN make
RUN make install
RUN ldconfig
RUN pip install catkin-tools
RUN mkdir -p /srv/${PACKAGE}
WORKDIR /srv/${PACKAGE}
COPY res/build.sh /srv/${PACKAGE}/build.sh
COPY res/test.sh /srv/${PACKAGE}/test.sh
COPY src /srv/${PACKAGE}/src
RUN mkdir /srv/test_results
# leave the container running
CMD tail -f /dev/null