rocksdb #29
2 changed files with 14 additions and 12 deletions
|
@ -1,12 +1,12 @@
|
|||
FROM golang:1.16.11-bullseye
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get upgrade && \
|
||||
apt-get install git libsnappy-dev liblz4-dev libzstd-dev zlib1g-dev
|
||||
RUN git clone https://github.com/facebook/rocksdb.git && \
|
||||
cd rocksdb && \
|
||||
git checkout v6.26.1 && \
|
||||
make shared_lib && \
|
||||
make install-shared
|
||||
|
||||
CMD ["bash"]
|
||||
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
|
||||
RUN git clone https://github.com/facebook/rocksdb.git && \
|
||||
cd rocksdb && \
|
||||
git checkout v6.26.1 && \
|
||||
make shared_lib && \
|
||||
make install-shared
|
||||
|
||||
CMD ["bash"]
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#!/bin/bash
|
||||
export CGO_LDFLAGS="-L/usr/local/lib -lrocksdb -lstdc++ -lm -lz -lsnappy -llz4 -lzstd"
|
||||
|
||||
export CGO_CFLAGS="-I/usr/local/include/rocksdb"
|
||||
go build .
|
||||
go test -v -race ./...
|
||||
|
|
Loading…
Reference in a new issue
do you see these changing often? id be careful cause diff versions of
protoc
could introduce cosmetic changes with big diffs that dont do much. i suggest that building protobufs should be a separate optional build step just for when they changebut if they change often, then its fine to leave it here