Skip to content

Commit c71784d

Browse files
author
chigusa
committed
gen swagger
1 parent 1ea5b18 commit c71784d

5 files changed

Lines changed: 503 additions & 1 deletion

File tree

Dockerfile_dev

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,16 @@ RUN dir=$GOPATH/src/$PROTOC_GEN_JSONIFY_REPO && \
6464
rm -rf .git && \
6565
go install ./
6666

67+
ENV PROTOC_GEN_SWAGGER_VERSION 1.12.1
68+
ENV PROTOC_GEN_SWAGGER_REPO "github.com/grpc-ecosystem/grpc-gateway"
69+
RUN dir=$GOPATH/src/$PROTOC_GEN_SWAGGER_REPO && \
70+
mkdir -p $dir && \
71+
git clone --branch v$PROTOC_GEN_SWAGGER_VERSION --depth 1 \
72+
https://$PROTOC_GEN_SWAGGER_REPO $dir && \
73+
cd $dir && \
74+
rm -rf .git && \
75+
cd protoc-gen-swagger && \
76+
go install ./
6777

6878
### End Protobuf
6979

docs/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ set -o nounset
2323
dir=$(dirname $0)
2424
pip install -r $dir/requirements.txt
2525
mkdocs build -f $dir/mkdocs.yml
26+
cp -R $dir/swagger $dir/site/

0 commit comments

Comments
 (0)