Skip to content

Commit

Permalink
peerswaprpc: update makefile, Dockerfile to generate files
Browse files Browse the repository at this point in the history
  • Loading branch information
shelter2759 committed Feb 8, 2025
1 parent 8a65c33 commit 3cd468c
Show file tree
Hide file tree
Showing 6 changed files with 1,332 additions and 623 deletions.
8 changes: 4 additions & 4 deletions peerswaprpc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ RUN cd /tmp \
&& go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@${GRPC_GATEWAY_VERSION} \
&& go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@${GRPC_GATEWAY_VERSION} \
&& GOBIN=/usr/local/bin go install github.com/bufbuild/buf/cmd/buf@v1.50.0 \
&& chmod -R 777 /tmp/build/ \
&& mkdir -p /.cache \
&& chmod a+x /.cache
&& chmod -R 777 /tmp/build/

WORKDIR /build

CMD ["buf", "generate"]
ENV BUF_CACHE_DIR=/tmp/.cache

CMD ["sh", "-c", "buf generate"]
1 change: 1 addition & 0 deletions peerswaprpc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ clean-rpc:
.PHONY: all-rpc-docker
all-rpc-docker:
./gen_protos_docker.sh

Loading

0 comments on commit 3cd468c

Please sign in to comment.