-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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 #7933
Labels
T: Dev UX
UX for SDK developers (i.e. how to call our code)
Milestone
Comments
9 tasks
This was referenced Dec 16, 2020
Merged
How should we move forward for dockerizing proto-swagger-gen (which requires installing another npm binary called
(we use an external dockerfile for swagger-combine)
I have a slight preference for 2 or 3. |
Why not (1)? It's not difficult to rebuild the image with that dependency added. |
4 tasks
9 tasks
I'm working on this issue |
9 tasks
mergify bot
pushed a commit
that referenced
this issue
Apr 7, 2021
* use docker for proto-swagger-gen fixes #7933 * fix deprecated commands and flags see https://docs.buf.build/faq/ for detail * run proto-gen and proto-swagger-gen * add changelog entry
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
To not install binaries on the user's local machine, use Docker for proto swagger generation.
Problem Definition
In protoc-swagger-gen.sh, we rely on a globally installed
swagger-combine
binary to combine all the generated swagger files into one. This may lead to incompatible versions used by different devs on the cosmos-sdk, leading to unwanted file diff in generated files.cosmos-sdk/scripts/protoc-swagger-gen.sh
Lines 21 to 24 in 4b529a4
Proposal
Following #7332, we should containerize
swagger-combine
(maybe in the same Dockerfile as buf/protoc?), and update the following Makefile target to use Docker:cosmos-sdk/Makefile
Lines 380 to 381 in 4b529a4
For Admin Use
The text was updated successfully, but these errors were encountered: