swaggo / swag

Automatically generate RESTful API documentation with Swagger 2.0 for Go.
MIT License
10.72k stars 1.2k forks source link

Request to create docker image for cli #1276

Open capsci opened 2 years ago

capsci commented 2 years ago

Is your feature request related to a problem? Please describe. Having a publicly available docker image on DockerHub will ease development environment setup (and also keep it consistent)

Describe the solution you'd like Push docker image in repo (like 'swaggo/swag') with version tagged (like 'v1.8.0') This will allow developers to generate swagger documentation using: docker run --rm -v $(PWD):/app -w /app swaggo/swag:v1.8.0 swag init --generatedTime -g server.go -d webserver,model -o generated/swaggo

Describe alternatives you've considered I'm currently building a local unofficial image of swaggo/swag image

FROM golang:1.18-alpine

RUN go install github.com/swaggo/swag/cmd/swag@v1.8.0

and then generate swagger documentation using: docker run --rm -v $(PWD):/app -w /app swaggo/swag:v1.8.0 swag init --generatedTime -g server.go -d webserver,model -o generated/swaggo

Additional context None

ubogdan commented 2 years ago

@capsci, as far as I know, docker hub doesn't offer free hosting for OOS projects.