HUB
Sign inSign up

scpman/go_http_file_server

By scpman

•Updated almost 8 years ago

Generate GRPC API documents

Image
0

183

scpman/go_http_file_server repository overview

Generate GRPC API documents

#!/bin/bash

cd /tmp/project/

rm -rf doc

protolist="./aa/grpc/aa.proto

./abc/proto/a.proto

./abc/grpc/a.proto"

for p in $protolist

do

    proto_path=`echo $p|awk -F'/' '{print $1"_"$2"_"$3"_"$4}'|sed -e "s#._##"`

    proto_path="./doc/"$proto_path

    [ -d "$proto_path" ] || mkdir -p $proto_path

    protoc --doc_out=$proto_path --doc_opt=html,index.html $p

done

sudo docker rm grpc_api -f

sudo docker run --name grpc_api -p 8080:8080 -v /tmp/project/doc:/file -idt "scpman/go_http_file_server"

Tag summary
Recent tags
Content type
Image
Digest
Size
47.4 MB
Last updated
almost 8 years ago
docker pull scpman/go_http_file_server:latest