herald.go/docker/Dockerfile.github
2021-12-11 17:22:45 -05:00

25 lines
756 B
Text

FROM golang:1.16.11-bullseye
RUN apt-get update && \
apt-get upgrade && \
apt-get install -y dnsutils git libsnappy-dev liblz4-dev libzstd-dev zlib1g-dev \
autoconf automake libtool curl make g++
RUN cd /tmp && \
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.1/protobuf-all-3.17.1.tar.gz && \
tar xfzv protobuf-all-3.17.1.tar.gz && \
cd protobuf-3.17.1 && \
./autogen.sh && \
./configure && \
make && \
make install && \
ldconfig && \
rm -rf /tmp/proto*
RUN cd /tmp && \
git clone https://github.com/facebook/rocksdb.git && \
cd rocksdb && \
git checkout v6.26.1 && \
make shared_lib && \
make install-shared && \
rm -rf /tmp/rocksdb
CMD ["bash"]