swag
swag copied to clipboard
Request to create docker image for cli
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/[email protected]
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
@capsci, as far as I know, docker hub doesn't offer free hosting for OOS projects.