forked from cosmos/gorocksdb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9e8435
commit befd196
Showing
2 changed files
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
FROM ubuntu:20.04 | ||
FROM debian:bullseye-slim | ||
|
||
ENV PORTABLE=1 | ||
ARG ROCKSDB_VERSION=v8.8.1 | ||
ARG ROCKSDB_VERSION=v8.9.1 | ||
|
||
WORKDIR / | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y \ | ||
git make build-essential libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev liblz4-dev libzstd-dev && \ | ||
apt-get install --no-install-recommends -y \ | ||
git ca-certificates build-essential liblz4-dev libsnappy-dev zlib1g-dev libbz2-dev libzstd-dev && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN git clone https://github.com/facebook/rocksdb.git && \ | ||
RUN git clone --depth 1 --branch $ROCKSDB_VERSION https://github.com/facebook/rocksdb.git && \ | ||
cd rocksdb && \ | ||
git checkout $ROCKSDB_VERSION && \ | ||
make -j4 static_lib | ||
PORTABLE=1 make PORTABLE=1 -j4 static_lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters