herald.go/docker/Dockerfile.github

26 lines
756 B
Text
Raw Normal View History

2021-12-07 04:59:05 +01:00
FROM golang:1.16.11-bullseye
RUN apt-get update && \
apt-get upgrade && \
2021-12-11 23:22:45 +01:00
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 && \
2021-12-07 04:59:05 +01:00
cd rocksdb && \
git checkout v6.26.1 && \
make shared_lib && \
2021-12-11 23:22:45 +01:00
make install-shared && \
rm -rf /tmp/rocksdb
2021-12-07 04:59:05 +01:00
CMD ["bash"]