Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade RocksDB to 6.24.2 #74

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions docker-tm-db-testing/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
FROM circleci/golang
FROM golang

ENV LD_LIBRARY_PATH=/usr/local/lib

RUN sudo apt-get install -y --no-install-recommends \
libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev libzstd-dev
RUN apt-get update && apt-get install -y --no-install-recommends \
libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev libzstd-dev make tar wget

# Install cleveldb
RUN \
wget https://github.com/google/leveldb/archive/v1.20.tar.gz \
&& tar xvf v1.20.tar.gz \
&& cd leveldb-1.20 \
&& make \
&& sudo cp -a out-static/lib* out-shared/lib* /usr/local/lib \
&& cp -a out-static/lib* out-shared/lib* /usr/local/lib \
&& cd include \
&& sudo cp -a leveldb /usr/local/include \
&& sudo ldconfig \
&& cp -a leveldb /usr/local/include \
&& ldconfig \
&& cd ../.. \
&& rm -rf v1.20.tar.gz leveldb-1.20

# Install Rocksdb
RUN \
wget https://github.com/facebook/rocksdb/archive/v6.6.4.tar.gz \
&& tar -zxf v6.6.4.tar.gz \
&& cd rocksdb-6.6.4 \
wget https://github.com/facebook/rocksdb/archive/v6.24.2.tar.gz \
&& tar -zxf v6.24.2.tar.gz \
&& cd rocksdb-6.42.2 \
&& DEBUG_LEVEL=0 make -j4 shared_lib \
&& sudo make install-shared \
&& sudo ldconfig \
&& make install-shared \
&& ldconfig \
&& cd .. \
&& rm -rf v6.6.4.tar.gz rocksdb-6.6.4
&& rm -rf v6.24.2.tar.gz rocksdb-6.24.2