herald.go/docker/Dockerfile.github

26 lines
761 B
Text
Raw Normal View History

2022-04-11 16:41:35 +02:00
FROM golang:1.17.8-bullseye
2021-12-07 04:59:05 +01:00
2022-04-11 16:41:35 +02:00
RUN apt-get update -y && \
apt-get upgrade -y && \
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"]