-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
51 lines (39 loc) · 1.76 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
45
46
47
48
49
50
51
# Copyright 2023 CommunityUtils Authors
ARG BASIS=ubuntu:focal
FROM $BASIS
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
cmake \
curl \
g++ \
make \
libxerces-c-dev \
libssl-dev \
perl-base \
perl-modules \
git
WORKDIR /opt
RUN git clone --depth 1 --branch master --single-branch https://github.com/OpenDDS/OpenDDS.git
ARG ACE_CONFIG_OPTION="--doc-group"
RUN cd /opt/OpenDDS && \
./configure --prefix=/usr/local --std=c++17 --security ${ACE_CONFIG_OPTION} && \
./tools/scripts/show_build_config.pl && \
make && \
make install && \
ldconfig && \
. /opt/OpenDDS/setenv.sh && \
cp -a ${MPC_ROOT} /usr/local/share/MPC
ENV ACE_ROOT=/usr/local/share/ace \
TAO_ROOT=/usr/local/share/tao \
DDS_ROOT=/usr/local/share/dds \
MPC_ROOT=/usr/local/share/MPC
WORKDIR /opt/workspace
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && apt-get install -y wget automake autoconf libtool libmicrohttpd-dev
RUN wget https://github.com/curl/curl/releases/download/curl-7_87_0/curl-7.87.0.tar.gz && tar xzf curl-7.87.0.tar.gz && cd curl-7.87.0 && ./configure --with-openssl && make && make install
RUN git clone --depth 1 --branch 3.1 --single-branch https://github.com/JosephP91/curlcpp.git && cd curlcpp && mkdir build && cd build && cmake .. -DBUILD_SHARED_LIBS=SHARED && make && make install
RUN git clone --depth 1 --branch 0.19.0 --single-branch https://github.com/etr/libhttpserver.git && cd libhttpserver && ./bootstrap && mkdir build && cd build && ../configure && make && make install
ADD . /opt/CommunityUtils
ENV COMMUNITY_UTILS_ROOT=/opt/CommunityUtils
WORKDIR /opt/CommunityUtils
RUN . /opt/OpenDDS/setenv.sh && mwc.pl -type gnuace HSDS.mwc -include MPC/config && make && make install