File tree Expand file tree Collapse file tree 3 files changed +1
-9
lines changed
Expand file tree Collapse file tree 3 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -9,18 +9,13 @@ RUN apt-get update && apt-get install -y \
99# explicitly provided by parsing the go.mod file. Otherwise we might forget to
1010# update them here if we bump the versions.
1111ARG PROTOBUF_VERSION
12- ARG GRPC_GATEWAY_VERSION
1312
1413ENV PROTOC_GEN_GO_GRPC_VERSION="v1.1.0"
15- ENV FALAFEL_VERSION="v0.9.1"
1614
1715RUN cd /tmp \
1816 && export GO111MODULE=on \
1917 && go get google.golang.org/protobuf/cmd/protoc-gen-go@${PROTOBUF_VERSION} \
20- && go get google.golang.org/grpc/cmd/protoc-gen-go-grpc@${PROTOC_GEN_GO_GRPC_VERSION} \
21- && go get github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@${GRPC_GATEWAY_VERSION} \
22- && go get github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@${GRPC_GATEWAY_VERSION} \
23- && go get github.com/lightninglabs/falafel@${FALAFEL_VERSION}
18+ && go get google.golang.org/grpc/cmd/protoc-gen-go-grpc@${PROTOC_GEN_GO_GRPC_VERSION}
2419
2520WORKDIR /build
2621
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ function generate() {
99 do
1010 protoc -I/usr/local/include -I. -I.. \
1111 --go_out . --go_opt paths=source_relative \
12- --go-grpc_out . --go-grpc_opt paths=source_relative \
1312 " ${file} "
1413 done
1514}
Original file line number Diff line number Diff line change 66DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
77
88PROTOBUF_VERSION=$( go list -f ' {{.Version}}' -m google.golang.org/protobuf)
9- GRPC_GATEWAY_VERSION=$( go list -f ' {{.Version}}' -m github.com/grpc-ecosystem/grpc-gateway/v2)
109
1110echo " Building protobuf compiler docker image..."
1211docker build -t loop-protobuf-builder \
1312 --build-arg PROTOBUF_VERSION=" $PROTOBUF_VERSION " \
14- --build-arg GRPC_GATEWAY_VERSION=" $GRPC_GATEWAY_VERSION " \
1513 .
1614
1715echo " Compiling and formatting *.proto files..."
You can’t perform that action at this time.
0 commit comments