-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (32 loc) · 1.11 KB
/
Dockerfile
File metadata and controls
38 lines (32 loc) · 1.11 KB
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
FROM ubuntu:16.04
RUN apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:webupd8team/java && \
apt-get update && apt-get install -y \
build-essential \
cmake \
git \
wget \
libssl-dev \
unzip \
vim \
nano && \
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true\
| debconf-set-selections && \
apt-get install -y oracle-java8-installer \
&& rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk8-installer
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
RUN wget https://services.gradle.org/distributions/gradle-4.2-bin.zip && \
mkdir /opt/gradle && \
unzip -d /opt/gradle gradle-4.2-bin.zip && \
export PATH=$PATH:/opt/gradle/gradle-4.2/bin && \
gradle -v && \
rm gradle-4.2-bin.zip
ENV PATH=$PATH:/opt/gradle/gradle-4.2/bin
RUN git clone --recurse-submodules https://github.com/eProsima/Fast-RTPS && \
mkdir Fast-RTPS/build && cd Fast-RTPS/build \
&& cmake -DTHIRDPARTY=ON -DBUILD_JAVA=ON \
-DPERFORMANCE_TESTS=ON -DSECURITY=ON .. \
&& make \
&& make install