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

Update Go version in the build container. #195

Merged
merged 1 commit into from
Nov 8, 2021
Merged
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
15 changes: 8 additions & 7 deletions tools/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
FROM golang
FROM golang:1.16-alpine

ENV LD_LIBRARY_PATH=/usr/local/lib

RUN apt-get update && apt-get install -y --no-install-recommends \
libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev libzstd-dev make tar wget
RUN apk add bash build-base bzip2-dev gflags-dev linux-headers \
perl snappy-dev util-linux wget zlib-dev zstd-dev

# Install cleveldb
RUN \
wget https://github.com/google/leveldb/archive/v1.20.tar.gz \
wget -q https://github.com/google/leveldb/archive/v1.20.tar.gz \
&& tar xvf v1.20.tar.gz \
&& cd leveldb-1.20 \
&& make \
&& cp -a out-static/lib* out-shared/lib* /usr/local/lib \
&& cd include \
&& cp -a leveldb /usr/local/include \
&& ldconfig \
&& ldconfig $LD_LIBRARY_PATH \
&& 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 \
wget -q https://github.com/facebook/rocksdb/archive/v6.6.4.tar.gz \
&& tar -zxf v6.6.4.tar.gz \
&& cd rocksdb-6.6.4 \
&& sed -i'' 's/install -C/install -c/g' Makefile \
&& DEBUG_LEVEL=0 make -j4 shared_lib \
&& make install-shared \
&& ldconfig \
&& ldconfig $LD_LIBRARY_PATH \
&& cd .. \
&& rm -rf v6.6.4.tar.gz rocksdb-6.6.4