Skip to content

Commit 3cd468c

Browse files
committed
peerswaprpc: update makefile, Dockerfile to generate files
1 parent 8a65c33 commit 3cd468c

File tree

6 files changed

+1332
-623
lines changed

6 files changed

+1332
-623
lines changed

peerswaprpc/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ RUN cd /tmp \
2222
&& go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@${GRPC_GATEWAY_VERSION} \
2323
&& go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@${GRPC_GATEWAY_VERSION} \
2424
&& GOBIN=/usr/local/bin go install github.com/bufbuild/buf/cmd/buf@v1.50.0 \
25-
&& chmod -R 777 /tmp/build/ \
26-
&& mkdir -p /.cache \
27-
&& chmod a+x /.cache
25+
&& chmod -R 777 /tmp/build/
2826

2927
WORKDIR /build
3028

31-
CMD ["buf", "generate"]
29+
ENV BUF_CACHE_DIR=/tmp/.cache
30+
31+
CMD ["sh", "-c", "buf generate"]

peerswaprpc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ clean-rpc:
1515
.PHONY: all-rpc-docker
1616
all-rpc-docker:
1717
./gen_protos_docker.sh
18+

0 commit comments

Comments
 (0)