-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
34 lines (30 loc) · 1.1 KB
/
Makefile
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
29
30
31
32
33
34
generate:
buf generate
# Generate static assets for OpenAPI UI
statik -m -f -src third_party/OpenAPI/
lint:
buf lint
buf breaking --against 'https://github.com/7cav/api.git#branch=develop'
certs:
rm -rf out/
certstrap init --common-name "ExampleCA" --passphrase ""
certstrap request-cert --common-name localhost --ip 0.0.0.0,127.0.0.1 --passphrase ""
certstrap sign localhost --CA "ExampleCA"
install:
go install \
google.golang.org/protobuf/cmd/protoc-gen-go \
google.golang.org/grpc/cmd/protoc-gen-go-grpc \
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 \
github.com/rakyll/statik
go get -u \
github.com/bufbuild/buf/cmd/buf \
github.com/square/certstrap \
github.com/spf13/cobra
evans:
evans \
--tls -cert out/localhost.crt --certkey out/localhost.key --cacert out/ExampleCA.crt \
--path /home/jarvis/.cache/buf/mod/grpc-ecosystem/grpc-gateway/240eb01580e34380ae1d138426e0174f/ \
--path /home/jarvis/.cache/buf/mod/beta/googleapis/1dc4674e3cb949b388204fa2dc321be7 \
--path . proto/milpacs.proto \
-p 10000