fix(crdb): use defined version of crdb for unit tests (#2510)

This commit is contained in:
Stefan Benz 2021-10-15 16:40:33 +02:00 committed by GitHub
parent 7aaa245a20
commit 1de1b14282
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,15 @@ RUN go mod download
COPY tools ./tools
RUN ./tools/install.sh
ARG COCKROACH_BINARY=cockroach
RUN apt install openssl tzdata tar
# cockroach binary used to backup database
RUN mkdir /usr/local/lib/cockroach
RUN wget -qO- https://binaries.cockroachdb.com/cockroach-v21.1.7.linux-amd64.tgz \
| tar xvz && cp -i cockroach-v21.1.7.linux-amd64/cockroach /usr/local/bin/
RUN rm -r cockroach-v21.1.7.linux-amd64
#######################
## generates static files
#######################