From 7faa1ae91786a8893a29b57b1e64857e31d53b7a Mon Sep 17 00:00:00 2001 From: grdddj Date: Tue, 15 Oct 2024 12:56:38 +0200 Subject: [PATCH] fix: Dockerfile fix on Ubuntu --- build/docker/bin/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/docker/bin/Dockerfile b/build/docker/bin/Dockerfile index 8930bdcc75..b92044c0ca 100644 --- a/build/docker/bin/Dockerfile +++ b/build/docker/bin/Dockerfile @@ -39,7 +39,8 @@ RUN echo -n "GOPATH: " && echo $GOPATH # install rocksdb RUN cd /opt && git clone -b $ROCKSDB_VERSION --depth 1 https://github.com/facebook/rocksdb.git -RUN cd /opt/rocksdb && CFLAGS=-fPIC CXXFLAGS=-fPIC PORTABLE=$PORTABLE_ROCKSDB make -j 4 release +RUN cd /opt/rocksdb && sed -i '8i #include ' table/block_based/data_block_hash_index.h && sed -i '9i #include ' util/string_util.h && sed -i '11i #include ' include/rocksdb/utilities/checkpoint.h +RUN cd /opt/rocksdb && CFLAGS=-fPIC CXXFLAGS="-fPIC -Wno-error=redundant-move" PORTABLE=$PORTABLE_ROCKSDB make -j 4 release RUN strip /opt/rocksdb/ldb /opt/rocksdb/sst_dump && \ cp /opt/rocksdb/ldb /opt/rocksdb/sst_dump /build