Use Docker to generate swagger files (#9064)

* 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
This commit is contained in:
Hanjun Kim
2021-04-07 10:31:39 +00:00
committed by GitHub
parent 29ff333007
commit 9b41ba7fb5
6 changed files with 184 additions and 79 deletions
+6
View File
@@ -18,4 +18,10 @@ RUN GO111MODULE=on go get \
RUN GO111MODULE=on go get -u github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc
RUN apk add --no-cache \
nodejs \
npm
RUN npm install -g swagger-combine
COPY --from=BUILDER /usr/local/bin /usr/local/bin