-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
30 lines (25 loc) · 796 Bytes
/
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
generate:
# buf mod update
# buf build
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
buf generate
build-pet:
docker build -t pet -f app/pet/Dockerfile .
lint:
buf lint
buf breaking --against 'https://github.com/hungtran150/api-app.git#branch=master'
BUF_VERSION:=0.51.1
# Error TODO: fix this
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-openapiv2
deploy:
docker compose down --rmi all
docker compose up --build
# docker compose up --scale order=2