forked from OpenDDS/OpenDDS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (33 loc) · 1.07 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
FROM ubuntu:xenial
RUN apt-get update && apt-get install -y \
cmake \
curl \
g++ \
google-mock \
make \
libgtest-dev \
libxerces-c-dev \
libssl-dev \
perl-base \
perl-modules
WORKDIR /usr/src/gtest
RUN cmake CMakeLists.txt && make && cp ./*.a /usr/lib
WORKDIR /usr/src/gmock
RUN cmake CMakeLists.txt && make && cp ./*.a /usr/lib
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
apt-get install -y --no-install-recommends nodejs
ADD . /opt/OpenDDS
RUN cd /opt/OpenDDS && \
./configure --prefix=/usr/local --security --doc-group --no-tests --std=c++11 && \
make && \
make install && \
cp -a /opt/OpenDDS/ACE_wrappers/MPC /usr/local/share/ace/MPC && \
cd /opt/OpenDDS/tools/repeater && \
npm install
ENV ACE_ROOT=/usr/local/share/ace \
TAO_ROOT=/usr/local/share/tao \
DDS_ROOT=/usr/local/share/dds \
PATH=".:/usr/local/share/ace/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
WORKDIR /opt/OpenDDS/tests/DCPS/Messenger
RUN mwc.pl -type gnuace && make
WORKDIR /opt/workspace