-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Docker to generate swagger files #9064
Use Docker to generate swagger files #9064
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How did you test?
make proto-swagger-gen
/usr/local/bin/docker run --rm -v /Users/amaury/Workspace/regen/cosmos-sdk:/workspace --workdir /workspace tendermintdev/sdk-proto-gen sh ./scripts/protoc-swagger-gen.sh
Unable to find image 'tendermintdev/sdk-proto-gen:latest' locally
latest: Pulling from tendermintdev/sdk-proto-gen
ba3557a56b15: Pull complete
34a078c6c131: Pull complete
e78f90fd1d94: Pull complete
efdc4f024afd: Pull complete
74b7f786c072: Pull complete
e056034dfc96: Pull complete
9c8b2c21c4ca: Pull complete
ab2da8730ae7: Pull complete
Digest: sha256:372dce7be2f465123e26459973ca798fc489ff2c75aeecd814c0ca8ced24faca
Status: Downloaded newer image for tendermintdev/sdk-proto-gen:latest
./scripts/protoc-swagger-gen.sh: line 24: swagger-combine: not found
make: *** [proto-swagger-gen] Error 127
@AmauryM Sorry, I forgot to mention about that. I've found that
After this pull request has merged, the image on Docker Hub will be updated too and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK, will test after the registry is updated
Thanks @hallazzang for the PR! |
Description
Use Docker to generate swagger files.
Also change deprecated commands to new commands and re-generate protobuf stubs and swagger documentation using
make proto-gen
andmake proto-swagger-gen
.closes: #7933
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes