forked from cloud-barista/cb-spider
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_grpc_idl.sh
More file actions
executable file
·29 lines (24 loc) · 827 Bytes
/
build_grpc_idl.sh
File metadata and controls
executable file
·29 lines (24 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# gogo proto compile
cd $CBSPIDER_ROOT/api-runtime/grpc-runtime/idl/gogoproto
protoc \
gogo.proto \
-I . \
-I $HOME/go/src/github.com/gogo/protobuf/protobuf \
-I $HOME/go/src \
--gofast_out=plugins=grpc,paths=source_relative,\
Mgoogle/protobuf/descriptor.proto=github.com/gogo/protobuf/protoc-gen-gogo/descriptor:\
.
cp -rf gogo.pb.go $CBSPIDER_ROOT/api-runtime/grpc-runtime/stub/gogoproto
rm gogo.pb.go
# cbpider proto compile
cd $CBSPIDER_ROOT/api-runtime/grpc-runtime/idl/cbspider
protoc \
cbspider.proto \
-I . \
-I $HOME/go/src/github.com/gogo/protobuf/protobuf \
-I $HOME/go/src/github.com/cloud-barista/cb-spider/api-runtime/grpc-runtime/idl/gogoproto \
--gofast_out=plugins=grpc:\
.
cp -rf cbspider.pb.go $CBSPIDER_ROOT/api-runtime/grpc-runtime/stub/cbspider
rm cbspider.pb.go