Skip to content

Commit

Permalink
Merge pull request #37 from tendermint/marko/add_dbs
Browse files Browse the repository at this point in the history
Add image for db testing
  • Loading branch information
Mircea Colonescu authored Jan 16, 2020
2 parents c9edb87 + 57bc351 commit 797ee8e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tendermint_db/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM circleci/golang

RUN sudo apt-get install -y --no-install-recommends libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev libzstd-dev

# Install cleveldb
RUN wget https://github.com/google/leveldb/archive/v1.20.tar.gz && tar xvf v1.20.tar.gz && rm -f v1.22.tar.gz
RUN cd leveldb-1.20 && make && sudo scp -r out-static/lib* out-shared/lib* "/usr/local/lib" && cd include && sudo scp -r leveldb /usr/local/include && sudo ldconfig && cd ~

# Install Rocksdb
RUN git clone https://github.com/facebook/rocksdb.git && cd rocksdb/ && sudo make install

# Install boltdb
RUN go get go.etcd.io/bbolt/...

0 comments on commit 797ee8e

Please sign in to comment.