swagger-api / swagger-codegen

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
http://swagger.io
Apache License 2.0
16.75k stars 6.02k forks source link

Automated Docker image for command-line run #2176

Open aleksandr-vin opened 8 years ago

aleksandr-vin commented 8 years ago

Don't think that web-based generator swaggerapi/swagger-generator fit well for scripts and command-line

kasperg commented 8 years ago

I agree. That would be very useful.

wing328 commented 8 years ago

Would the following help?

https://github.com/swagger-api/swagger-codegen#docker

kasperg commented 8 years ago

I do not think so. That leads to an image for the webbased tool.

What I am looking for is something like this: docker run -it swaggerapi/swagger-codegen <command> <args>. See this image/Dockerfile for reference.

We will try to maintain reload/swagger-codegen with stable releases for command line usage until there is an official image for doing so.

mtsmfm commented 7 years ago

@wing328 Do you have any plan to publish cli version on docker hub? I also fork this repo to publish cli image on docker hub.

https://hub.docker.com/r/mtsmfm/swagger-codegen/

arnested commented 7 years ago

@mtsmfm, see #2945.

mtsmfm commented 4 years ago

@aleksandr-vin @arnested I think this issue can be closed because of https://hub.docker.com/r/swaggerapi/swagger-codegen-cli

scara commented 4 years ago

because of https://hub.docker.com/r/swaggerapi/swagger-codegen-cli

Not to mention the availability of https://hub.docker.com/r/swaggerapi/swagger-codegen-cli-v3 too 😉.

HTH, Matteo