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

@ -1,12 +1,12 @@
FROM golang:1.16.11-bullseye 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 && \
make shared_lib && \ make shared_lib && \
make install-shared make install-shared
CMD ["bash"] CMD ["bash"]

View file

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