-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-base
74 lines (67 loc) · 2.33 KB
/
Dockerfile-base
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
FROM ubuntu:bionic AS volition-build-base
RUN apt-get update \
&& apt-get -y --no-install-recommends install \
ca-certificates \
curl \
gcc-7 \
g++-7 \
git \
make \
openssl \
sqlite3 \
libgflags-dev \
libsnappy-dev \
libbz2-dev \
liblz4-dev \
libsodium-dev \
libsqlite3-dev \
libzstd-dev \
zlib1g-dev \
vim \
valgrind \
openssh-client
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 7 \
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 7 \
&& update-alternatives --auto gcc \
&& update-alternatives --auto g++ \
&& gcc -v
RUN git clone -b v3.14.4 https://gitlab.kitware.com/cmake/cmake.git \
&& cd cmake \
&& ./bootstrap -- -DCMAKE_BUILD_TYPE:STRING=Release \
&& make -j4 \
&& make install \
&& cd .. \
&& rm -r cmake
RUN git clone -b OpenSSL_1_1_1b https://github.com/openssl/openssl.git \
&& cd openssl \
&& ./config \
&& make \
&& make install
RUN git clone -b poco-1.9.1 https://github.com/pocoproject/poco \
&& cd poco \
&& cmake \
-DDISABLE_CPP11=ON \
-DDISABLE_CPP14=ON \
-DENABLE_MONGODB=OFF \
-DENABLE_REDIS=OFF \
-DENABLE_PDF=OFF \
-DENABLE_DATA=OFF \
-DENABLE_DATA_SQLITE=OFF \
-DENABLE_DATA_MYSQL=OFF \
-DENABLE_DATA_POSTGRESQL=OFF \
-DENABLE_DATA_ODBC=OFF \
-DENABLE_PAGECOMPILER=OFF \
-DENABLE_PAGECOMPILER_FILE2PAGE=OFF \
. \
&& make -j4 VERBOSE=1 \
&& make install \
&& cd .. \
&& rm -r poco
# RUN git clone https://github.com/facebook/rocksdb.git \
# && cd rocksdb \
# && make shared_lib \
# && make install-shared \
# && cd .. \
# && rm -r rocksdb
RUN curl -s https://packagecloud.io/install/repositories/immortal/immortal/script.deb.sh | bash \
&& apt install immortal