OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.53k stars 6.51k forks source link

[REQ] add 'latest-stable' tag to dockerhub image for openapi-generator-cli #5092

Open dkliban opened 4 years ago

dkliban commented 4 years ago

Our project uses openapi-generator-cli image from Dockerhub to generate client libraries. We would like to always use the latest release. When a new release is available, we have to update our scripts to use the new tag. It would be easier if 'latest-stable' tag always pointed to the latest release.

jimschubert commented 4 years ago

Would it be sufficient to wrap https://github.com/OpenAPITools/openapi-generator/blob/master/bin/utils/openapi-generator-cli.sh into a standard JDK image? This script checks the latest tag on GitHub at every invocation and pulls/executes that jar.

By wrapping that script, we build the image once (or scheduled daily to keep dependencies updated) and there's no maintenance or need to hook into our build.