-
Notifications
You must be signed in to change notification settings - Fork 36
/
Makefile
82 lines (68 loc) · 3.13 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
install:
@echo '************ ************'
@echo '************ Install packages ************'
@echo '************ ************'
pnpm install
up:
@echo '************ ************'
@echo '************ UP CONTAINERS ************'
@echo '************ ************'
docker compose up -d
down:
@echo '************ ************'
@echo '************ DOWN CONTAINERS ************'
@echo '************ ************'
docker compose down
stop:
@echo '************ ************'
@echo '************ STOP CONTAINERS ************'
@echo '************ ************'
docker compose stop
dev:
@echo '************ ************'
@echo '************ DEV INIT ************'
@echo '************ ************'
STAGE=dev docker compose up --build -d
prod:
@echo '************ ************'
@echo '************ PROD INIT ************'
@echo '************ ************'
STAGE=prod docker compose up --build -d
build_prod:
@echo '************ ************'
@echo '************ PROD BUILD ************'
@echo '************ ************'
STAGE=prod docker compose build
dev_sql:
@echo '************ ************'
@echo '************ DEV SQL INIT ************'
@echo '************ ************'
STAGE=dev docker compose -f docker-compose.yml -f docker-compose.sql.yml up --build -d
exec:
@echo '************ ************'
@echo '************ Exec Bash NODE ************'
@echo '************ ************'
docker compose exec node bash
sh:
@echo '************ ************'
@echo '************ Exec SH NODE ************'
@echo '************ ************'
docker compose exec node sh
test:
@echo '************ ************'
@echo '************ Exec NODE TEST ************'
@echo '************ ************'
docker compose exec node pnpm test
stress:
@echo '************ ************'
@echo '************ STRESS TEST ************'
@echo '************ ************'
artillery run artillery.yml
init:
@echo '************ ************'
@echo '************ Init NODE ************'
@echo '************ ************'
docker compose exec node sh tools/dev.init.sh
clean:
docker compose down -v --remove-orphans
docker ps -a | grep _run_ | awk '{print $$1}' | xargs -I {} docker rm {}