-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
36 lines (35 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
FROM centos:7
RUN yum install -y gcc-c++ make perl \
\
&& curl -LO https://www.openssl.org/source/openssl-1.1.1g.tar.gz \
&& tar xf openssl-1.1.1g.tar.gz \
&& cd openssl-1.1.1g \
&& ./config --openssldir=/etc/ssl enable-ec_nistp_64_gcc_128 no-ssl2 no-ssl3 no-comp no-idea no-dtls no-dtls1 no-shared no-psk no-srp no-ec2m no-weak-ssl-ciphers \
&& make install_sw \
&& cd .. \
&& rm -rf openssl-1.1.1g.tar.gz openssl-1.1.1g \
\
&& curl -LO https://github.com/Kitware/CMake/releases/download/v3.17.3/cmake-3.17.3.tar.gz \
&& tar xf cmake-3.17.3.tar.gz \
&& cd cmake-3.17.3 \
&& ./bootstrap -- \
&& make -j$(nproc) install \
&& cd .. \
&& rm -rf cmake-3.17.3.tar.gz cmake-3.17.3 \
\
&& curl -LO https://dl.bintray.com/boostorg/release/1.73.0/source/boost_1_73_0.tar.gz \
&& tar xf boost_1_73_0.tar.gz \
&& cd boost_1_73_0 \
&& ./bootstrap.sh \
&& ./b2 -j$(nproc) --with-system --with-program_options variant=release link=static threading=multi runtime-link=shared install \
&& cd .. \
&& rm -rf boost_1_73_0.tar.gz boost_1_73_0 \
\
&& curl -LO https://downloads.mariadb.org/f/connector-c-3.1.8/mariadb-connector-c-3.1.8-src.tar.gz \
&& tar xf mariadb-connector-c-3.1.8-src.tar.gz \
&& cd mariadb-connector-c-3.1.8-src \
&& echo "TARGET_LINK_LIBRARIES(libmariadb PUBLIC pthread)" >> libmariadb/CMakeLists.txt \
&& cmake -DWITH_CURL=OFF -DWITH_DYNCOL=OFF -DWITH_MYSQLCOMPAT=ON -DWITH_UNIT_TESTS=OFF . \
&& make -j$(nproc) install \
&& cd .. \
&& rm -rf mariadb-connector-c-3.1.8-src.tar.gz mariadb-connector-c-3.1.8-src