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 98611af commit 711843e
Show file tree
Hide file tree
Showing 6 changed files with 1,333 additions and 621 deletions.
5 changes: 4 additions & 1 deletion peerswaprpc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ RUN cd /tmp \
&& go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@${PROTOC_GEN_GO_GRPC_VERSION} \
&& 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/

WORKDIR /build

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

CMD ["sh", "-c", "buf generate"]
3 changes: 2 additions & 1 deletion peerswaprpc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ clean-rpc:

.PHONY: all-rpc-docker
all-rpc-docker:
${DIR}/gen_protos_docker.sh
./gen_protos_docker.sh

Loading

0 comments on commit 711843e

Please sign in to comment.