mirror of
https://github.com/lightninglabs/loop
synced 2024-11-11 13:11:12 +00:00
a7fff0ac2f
To make loop work with the latest lnd version inside of LiT, we need to upgrade the grpc-gateway library to the same v2 version here too.
26 lines
901 B
Docker
26 lines
901 B
Docker
FROM golang:1.16.3-buster
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
git \
|
|
protobuf-compiler='3.6*' \
|
|
clang-format='1:7.0*'
|
|
|
|
# We don't want any default values for these variables to make sure they're
|
|
# explicitly provided by parsing the go.mod file. Otherwise we might forget to
|
|
# update them here if we bump the versions.
|
|
ARG PROTOBUF_VERSION
|
|
ARG GRPC_GATEWAY_VERSION
|
|
|
|
ENV PROTOC_GEN_GO_GRPC_VERSION="v1.1.0"
|
|
|
|
RUN cd /tmp \
|
|
&& export GO111MODULE=on \
|
|
&& go get google.golang.org/protobuf/cmd/protoc-gen-go@${PROTOBUF_VERSION} \
|
|
&& go get google.golang.org/grpc/cmd/protoc-gen-go-grpc@${PROTOC_GEN_GO_GRPC_VERSION} \
|
|
&& go get github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@${GRPC_GATEWAY_VERSION} \
|
|
&& go get github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@${GRPC_GATEWAY_VERSION}
|
|
|
|
WORKDIR /build
|
|
|
|
CMD ["/bin/bash", "/build/looprpc/gen_protos.sh"]
|