This commit is contained in:
Jeffrey Picard 2021-12-06 22:59:05 -05:00
parent 4a4fce77cb
commit 2ee8c62d13
2 changed files with 14 additions and 12 deletions

View file

@ -2,7 +2,7 @@ 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
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 && \

View file

@ -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 ./...