File tree 3 files changed +1
-9
lines changed
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 \
9
9
# explicitly provided by parsing the go.mod file. Otherwise we might forget to
10
10
# update them here if we bump the versions.
11
11
ARG PROTOBUF_VERSION
12
- ARG GRPC_GATEWAY_VERSION
13
12
14
13
ENV PROTOC_GEN_GO_GRPC_VERSION="v1.1.0"
15
- ENV FALAFEL_VERSION="v0.9.1"
16
14
17
15
RUN cd /tmp \
18
16
&& export GO111MODULE=on \
19
17
&& 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}
24
19
25
20
WORKDIR /build
26
21
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ function generate() {
9
9
do
10
10
protoc -I/usr/local/include -I. -I.. \
11
11
--go_out . --go_opt paths=source_relative \
12
- --go-grpc_out . --go-grpc_opt paths=source_relative \
13
12
" ${file} "
14
13
done
15
14
}
Original file line number Diff line number Diff line change 6
6
DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
7
7
8
8
PROTOBUF_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)
10
9
11
10
echo " Building protobuf compiler docker image..."
12
11
docker build -t loop-protobuf-builder \
13
12
--build-arg PROTOBUF_VERSION=" $PROTOBUF_VERSION " \
14
- --build-arg GRPC_GATEWAY_VERSION=" $GRPC_GATEWAY_VERSION " \
15
13
.
16
14
17
15
echo " Compiling and formatting *.proto files..."
You can’t perform that action at this time.
0 commit comments