build docker image for chrislusf/seaweedfs:rocksdb

This commit is contained in:
Chris Lu
2021-09-30 21:10:23 -07:00
parent 3b159db143
commit 7b776be285
3 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
FROM amd64/golang:1.17-buster
RUN apt-get update
RUN apt-get install -y build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev libzstd-dev
ENV ROCKSDB_VERSION v6.22.1
# build RocksDB
RUN cd /tmp && \
git clone https://github.com/facebook/rocksdb.git /tmp/rocksdb --depth 1 --single-branch --branch $ROCKSDB_VERSION && \
cd rocksdb && \
make static_lib && \
make install-static