-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
1,678 additions
and
1,717 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
# Doc: We need to generate protobuf golang files from `*.proto`. | ||
# Originally, this required various binaries(protoc/protoc-gen-go/protoc-gen-java...) to be installed on the machine where the command was executed. | ||
# This is too complex and prone to version inconsistencies. | ||
|
||
# https://github.com/namely/docker-protoc provides a docker image containing various binaries required to generate protobuf. | ||
|
||
cd `dirname $0` | ||
|
||
cid=`docker run -d --rm --entrypoint=sleep -v $PWD:/defs namely/protoc-all 3600` | ||
|
||
docker exec -it $cid /usr/local/bin/entrypoint.sh -l go -o . --go-source-relative -f pb/common.proto | ||
docker exec -it $cid /usr/local/bin/entrypoint.sh -i /defs/pb -l go -o . --go-source-relative -f gateway/pb/gateway-for-agent.proto | ||
docker exec -it $cid /usr/local/bin/entrypoint.sh -i /defs/pb -l go -o . --go-source-relative -f registry/pb/registry-for-agent.proto | ||
docker exec -it $cid /usr/local/bin/entrypoint.sh -i /defs/pb -l go -o . --go-source-relative -f registry/pb/registry-for-prod.proto | ||
|
||
docker stop $cid | ||
echo done |
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.