rocksdb #29
2 changed files with 14 additions and 12 deletions
|
@ -2,7 +2,7 @@ FROM golang:1.16.11-bullseye
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get upgrade && \
|
apt-get upgrade && \
|
||||||
apt-get install git libsnappy-dev liblz4-dev libzstd-dev zlib1g-dev
|
apt-get install -y dnsutils git libsnappy-dev liblz4-dev libzstd-dev zlib1g-dev
|
||||||
RUN git clone https://github.com/facebook/rocksdb.git && \
|
RUN git clone https://github.com/facebook/rocksdb.git && \
|
||||||
cd rocksdb && \
|
cd rocksdb && \
|
||||||
git checkout v6.26.1 && \
|
git checkout v6.26.1 && \
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
#!/bin/bash
|
#!/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 build .
|
||||||
go test -v -race ./...
|
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