-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
108 lines (71 loc) · 2.33 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# ============= Golang ============= #
go--genproto:
protoc --go_out=plugins=grpc:src/go/common/pb -I proto/ proto/*.proto
go--deps:
go mod tidy
go mod vendor
bazel run //:gazelle -- update-repos -from_file=go.mod
bazel run //:gazelle
# ============= Store service ============= #
store-service--build:
make build PROJECT=store-service
store-service--run:
make run PROJECT=store-service
store-service--docker-build:
make docker-build PROJECT=store-service
store-service--docker-push:
make docker-push PROJECT=store-service
# ============= User service ============= #
user-service--build:
make build PROJECT=user-service
user-service--run:
make run PROJECT=user-service
user-service--docker-build:
make docker-build PROJECT=user-service
user-service--docker-push:
make docker-push PROJECT=user-service
# ============= Gateway service ============= #
gateway-service--build:
make build PROJECT=gateway-service
gateway-service--run:
make run PROJECT=gateway-service
gateway-service--docker-build:
make docker-build PROJECT=gateway-service
gateway-service--docker-push:
make docker-push PROJECT=gateway-service
# ============= Product service ============= #
product-service--build:
make build PROJECT=product-service
product-service--run:
make run PROJECT=product-service
product-service--docker-build:
make docker-build PROJECT=product-service
product-service--docker-push:
make docker-push PROJECT=product-service
# ============= Store Product service ============= #
store-product-service--build:
make build PROJECT=store-product-service
store-product-service--run:
make run PROJECT=store-product-service
store-product-service--docker-build:
make docker-build PROJECT=store-product-service
store-product-service--docker-push:
make docker-push PROJECT=store-product-service
# ============= Sesssion service ============= #
session-service--build:
make build PROJECT=session-service
session-service--run:
make run PROJECT=session-service
session-service--docker-build:
make docker-build PROJECT=session-service
session-service--docker-push:
make docker-push PROJECT=session-service
# ============= Generic commands ============= #
docker-build:
bazel run //:$(PROJECT) -- --norun
docker-push:
bazel run //:$(PROJECT)-push
build:
bazel build //src/go/$(PROJECT):$(PROJECT)
run:
bazel run //src/go/$(PROJECT):$(PROJECT)