2020-04-29 11:07:16 +02:00
|
|
|
FROM ubuntu:20.04
|
2020-03-09 17:11:14 +01:00
|
|
|
|
2020-04-08 03:58:55 +02:00
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2020-03-09 17:11:14 +01:00
|
|
|
RUN \
|
|
|
|
apt-get update && \
|
2020-04-08 03:13:55 +02:00
|
|
|
apt-get install --no-install-recommends -y software-properties-common && \
|
2020-03-09 17:11:14 +01:00
|
|
|
apt-get update && \
|
|
|
|
apt-get install --no-install-recommends -y \
|
|
|
|
autoconf \
|
|
|
|
autoconf-archive \
|
|
|
|
autoconf2.13 \
|
|
|
|
automake \
|
|
|
|
autotools-dev \
|
2020-04-29 11:07:16 +02:00
|
|
|
boost1.71 \
|
2020-03-09 17:11:14 +01:00
|
|
|
build-essential \
|
|
|
|
cmake \
|
|
|
|
curl \
|
2020-03-10 03:16:30 +01:00
|
|
|
git \
|
2020-03-09 17:11:14 +01:00
|
|
|
libbz2-dev \
|
2020-03-26 00:23:11 +01:00
|
|
|
libgraphicsmagick1-dev \
|
2020-04-05 22:13:17 +02:00
|
|
|
libjemalloc-dev \
|
2020-03-26 00:17:58 +01:00
|
|
|
liblz4-dev \
|
2020-03-09 17:11:14 +01:00
|
|
|
libmagic-dev \
|
|
|
|
libnss-db \
|
|
|
|
libsodium-dev \
|
2020-03-26 00:18:38 +01:00
|
|
|
libssl-dev \
|
2020-03-09 17:11:14 +01:00
|
|
|
libtool \
|
|
|
|
shtool \
|
2020-03-26 00:31:46 +01:00
|
|
|
xz-utils && \
|
2020-04-08 03:13:55 +02:00
|
|
|
apt-get purge -y software-properties-common && \
|
2020-03-09 17:11:14 +01:00
|
|
|
apt-get clean && \
|
2020-04-08 03:13:55 +02:00
|
|
|
apt-get autoremove --purge -y && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2020-03-09 17:11:14 +01:00
|
|
|
|
2020-05-04 23:11:56 +02:00
|
|
|
ENV ROCKSDB_VERSION=6.6.4
|
2020-03-09 17:11:14 +01:00
|
|
|
|
|
|
|
RUN \
|
2020-04-29 11:07:16 +02:00
|
|
|
cd /usr/src && \
|
2020-03-09 17:11:14 +01:00
|
|
|
curl -sL https://github.com/facebook/rocksdb/archive/v${ROCKSDB_VERSION}.tar.gz -o rocksdb-${ROCKSDB_VERSION}.tar.gz && \
|
|
|
|
tar xfvz rocksdb-${ROCKSDB_VERSION}.tar.gz && \
|
2020-05-04 23:10:10 +02:00
|
|
|
rm rocksdb-${ROCKSDB_VERSION}.tar.gz && \
|
|
|
|
ln -s /usr/src/rocksdb-${ROCKSDB_VERSION} /usr/src/rocksdb && \
|
|
|
|
cd /usr/src/rocksdb-${ROCKSDB_VERSION} && \
|
2020-05-06 07:54:35 +02:00
|
|
|
CFLAGS="-g0" \
|
2020-05-04 23:10:10 +02:00
|
|
|
cmake -H. -Bbuild \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DWITH_TESTS=0 \
|
|
|
|
-DWITH_TOOLS=0 \
|
|
|
|
-DUSE_RTTI=1 \
|
|
|
|
-DWITH_LZ4=1 \
|
2020-05-06 07:53:29 +02:00
|
|
|
-DWITH_GFLAGS=0 \
|
2020-05-04 23:10:10 +02:00
|
|
|
-DBUILD_SHARED_LIBS=1 && \
|
|
|
|
cmake --build build --target install && \
|
|
|
|
rm -rf build
|
2020-03-09 17:11:14 +01:00
|
|
|
|
|
|
|
RUN mkdir /build
|
|
|
|
WORKDIR /build
|