-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
76 lines (63 loc) · 2.9 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
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
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
ts_check:
@echo '************ ************'
@echo '************ Exec NODE TS CHECK ************'
@echo '************ ************'
docker-compose exec node pnpm ts-check
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 {}