-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (33 loc) · 1.17 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
35
36
37
38
39
40
41
42
43
44
45
46
# ==============================================================================
# Main
# ==============================================================================
run:
go run ./server.go
build:
go build ./server.go
test:
go test -cover ./...
# ==============================================================================
# Protobuf commands
# ==============================================================================
proto-gen:
protoc --go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
proto/*.proto
proto-clean:
rm proto/*.pb.go
# ==============================================================================
# Docker compose commands
# ==============================================================================
develop:
docker-compose -f docker-compose.yml up -d --build
develop-logs:
docker-compose -f docker-compose.yml logs -f server
develop-down:
docker-compose -f docker-compose.yml down
local:
docker-compose -f docker-compose.local.yml up -d --build
local-logs:
docker-compose -f docker-compose.local.yml logs -f server
local-down:
docker-compose -f docker-compose.local.yml down