2019-03-27 09:53:54 +01:00
|
|
|
FROM ubuntu:18.04
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y software-properties-common && \
|
|
|
|
add-apt-repository -y ppa:mhier/libboost-latest && \
|
|
|
|
add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
|
|
|
|
apt-get update && \
|
2019-04-01 11:50:40 +02:00
|
|
|
apt-get install --no-install-recommends -y \
|
2019-03-27 09:53:54 +01:00
|
|
|
autoconf \
|
|
|
|
autoconf-archive \
|
|
|
|
autoconf2.13 \
|
|
|
|
automake \
|
|
|
|
autotools-dev \
|
|
|
|
boost1.68 \
|
|
|
|
build-essential \
|
|
|
|
cmake \
|
|
|
|
curl \
|
|
|
|
g++-8 \
|
|
|
|
gcc-8 \
|
2020-03-10 03:16:30 +01:00
|
|
|
git \
|
2019-03-27 09:53:54 +01:00
|
|
|
libbz2-dev \
|
|
|
|
libgflags-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 \
|
2019-03-27 09:53:54 +01:00
|
|
|
libmagic-dev \
|
2020-03-09 03:51:52 +01:00
|
|
|
libnss-db \
|
2019-03-27 09:53:54 +01:00
|
|
|
libsodium-dev \
|
2020-03-26 00:18:38 +01:00
|
|
|
libssl-dev \
|
2019-03-27 09:53:54 +01:00
|
|
|
libtool \
|
|
|
|
shtool \
|
2020-03-26 00:31:46 +01:00
|
|
|
xz-utils && \
|
2019-03-27 09:53:54 +01:00
|
|
|
apt-get clean && \
|
|
|
|
apt-get autoremove --purge -y
|
|
|
|
|
|
|
|
ENV ROCKSDB_VERSION=5.16.6
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
mkdir -p /tmpbuild/rocksdb && \
|
|
|
|
cd /tmpbuild/rocksdb && \
|
|
|
|
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 && \
|
|
|
|
cd /tmpbuild/rocksdb/rocksdb-${ROCKSDB_VERSION} && \
|
|
|
|
cmake -H. -Bbuild \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DWITH_TESTS=0 \
|
|
|
|
-DWITH_TOOLS=0 \
|
|
|
|
-DUSE_RTTI=1 \
|
2020-03-26 00:17:58 +01:00
|
|
|
-DWITH_LZ4=1 \
|
2019-03-27 09:53:54 +01:00
|
|
|
-DBUILD_SHARED_LIBS=1 && \
|
|
|
|
cmake --build build --target install && \
|
|
|
|
rm -Rf /tmpbuild/
|
|
|
|
|
|
|
|
RUN mkdir /build
|
|
|
|
|
|
|
|
ENV CXX g++-8
|
|
|
|
ENV CC gcc-8
|
|
|
|
|
|
|
|
WORKDIR /build
|
|
|
|
|
|
|
|
CMD [ "/bin/bash" ]
|