Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
129 lines (110 loc) · 3.62 KB
/
Copy pathMakefile
File metadata and controls
129 lines (110 loc) · 3.62 KB
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
.PHONY: help start-all stop-all build-all restart-all prepare-all setup logs
help: ## Show this help message
@echo 'usage: make [target]'
@echo
@echo 'targets:'
@egrep '^(.+)\:\ ##\ (.+)' ${MAKEFILE_LIST} | column -t -c 2 -s ':#'
start-all: ## Runs all services: RabbitMQ, Redis, Register, Application, Carts, Products, Inventory, Mailer, Payments and eSIM
make -C rabbitmq start
make -C redis start
make -C register start
make -C application start
make -C carts start
make -C products start
make -C inventory start
make -C mailer start
make -C payments start
make -C esim start
$(MAKE) prepare-all
prepare-all: ## Install dependencies and run migrations in all services
make -C register prepare
make -C application prepare
make -C carts prepare
make -C products prepare
make -C inventory prepare
make -C mailer prepare
make -C payments prepare
make -C esim prepare
stop-all: ## Stops all services
make -C rabbitmq stop
make -C redis stop
make -C application stop
make -C register stop
make -C carts stop
make -C products stop
make -C inventory stop
make -C mailer stop
make -C payments stop
make -C esim stop
build-all: ## Build all services
make -C register build
make -C application build
make -C carts build
make -C products build
make -C inventory build
make -C mailer build
make -C payments build
make -C esim build
restart-all: ## Restarts all services
make -C rabbitmq restart
make -C redis restart
make -C application restart
make -C register restart
make -C carts restart
make -C products restart
make -C inventory restart
make -C mailer restart
make -C payments restart
make -C esim restart
console-application: ## bash into Application Service PHP container
make -C application console
console-register: ## bash into Register Service PHP container
make -C register console
console-carts: ## bash into Carts Service PHP container
make -C carts console
console-products: ## bash into Products Service PHP container
make -C products console
console-mailer: ## bash into Mailer Service PHP container
make -C mailer console
console-inventory: ## bash into Inventory Service PHP container
make -C inventory console
console-payments: ## bash into Payments Service PHP container
make -C payments console
console-esim: ## bash into eSIM Service PHP container
make -C esim console
logs: ## Follow every service dev.log in one terminal (filter with SERVICES="payments esim")
./scripts/logs.sh $(SERVICES)
migrations-all: ## bash execute settings for all services
@echo "Setting up Register migrations..."
cd register && make migrations
@echo "Setting up Application migrations..."
cd application make migrations
@echo "Setting up Carts migrations..."
cd carts && make migrations
@echo "Setting up Inventory migrations..."
cd inventory && make migrations
@echo "Setting up Mailer migrations..."
cd mailer && make migrations
@echo "Setting up Products migrations..."
cd products && make migrations
@echo "Setting up Payments migrations..."
cd payments && make migrations
@echo "Setting up eSIM migrations..."
cd esim && make migrations
setup: ## bash execute settings for all services
@echo "Setting up Register service..."
cd register && ./setup.sh
@echo "Setting up Application service..."
cd application && ./setup.sh
@echo "Setting up Carts service..."
cd carts && ./setup.sh
@echo "Setting up Inventory service..."
cd inventory && ./setup.sh
@echo "Setting up Mailer service..."
cd mailer && ./setup.sh
@echo "Setting up Products service..."
cd products && ./setup.sh
@echo "Setting up Payments service..."
cd payments && ./setup.sh
@echo "Setting up eSIM service..."
cd esim && ./setup.sh