Skip to content

Commit 8d0e9a2

Browse files
committed
swapserverrpc: remove unnecessary vars in proto dockerfile
1 parent b09969e commit 8d0e9a2

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

swapserverrpc/Dockerfile

+1-6
Original file line numberDiff line numberDiff 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.
1111
ARG PROTOBUF_VERSION
12-
ARG GRPC_GATEWAY_VERSION
1312

1413
ENV PROTOC_GEN_GO_GRPC_VERSION="v1.1.0"
15-
ENV FALAFEL_VERSION="v0.9.1"
1614

1715
RUN 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

2520
WORKDIR /build
2621

swapserverrpc/gen_protos.sh

-1
Original file line numberDiff line numberDiff 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
}

swapserverrpc/gen_protos_docker.sh

-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ set -e
66
DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
77

88
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)
109

1110
echo "Building protobuf compiler docker image..."
1211
docker build -t loop-protobuf-builder \
1312
--build-arg PROTOBUF_VERSION="$PROTOBUF_VERSION" \
14-
--build-arg GRPC_GATEWAY_VERSION="$GRPC_GATEWAY_VERSION" \
1513
.
1614

1715
echo "Compiling and formatting *.proto files..."

0 commit comments

Comments
 (0)