-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (27 loc) · 812 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
31
32
33
34
35
36
37
38
# env
DOCKER_COMPOSE=sudo docker-compose -f docker/docker-compose.yaml
.PHONY: run buf-build buf-lint buf-generate image-gen docker-run docker-stop go-test
# starts envoy-proxy docker container.
docker-run:
${DOCKER_COMPOSE} up -d
# stops envoy-proxy docker container.
docker-stop:
${DOCKER_COMPOSE} down
# starts the service
run:
go run ./example/cmd/example/main.go
# running tests.
go-test:
go test -v ./example/server
# compile check
buf-build:
buf build ./example/grpc/exampleapis --error-format=json
# lint .proto files
buf-lint:
buf lint ./example/grpc/exampleapis --error-format=json
# generate Go code
buf-gen:
bash ./example/grpc/buf.gen.sh
# generate buf image
image-gen:
buf build ./example/grpc/exampleapis -o ./docker/envoy/protos/example.pb --as-file-descriptor-set