-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (25 loc) · 865 Bytes
/
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
#!/usr/bin/make
include .env
aws_bin=$(shell command -v aws 2> /dev/null)
docker_compose_bin=$(shell command -v docker-compose 2> /dev/null) -p performance-testing-tool
docker_bin=$(shell command -v docker 2> /dev/null)
GREEN := $(shell tput -Txterm setaf 2)
RESET := $(shell tput -Txterm sgr0)
.DEFAULT_GOAL=help
compose=-f docker-compose.yml
help:
@echo "${GREEN}init${RESET}" - initiate project: install modules, create init migrations, run seeds
@echo "${GREEN}up${RESET}" - up services
@echo "${GREEN}down${RESET}" - down all
@echo "${GREEN}destroy${RESET}" - destroy all
init:
yarn
yarn typeorm migration:generate src/migrations/Init -t 1670670000000
yarn typeorm migration:run
yarn seed:run
up:
$(docker_compose_bin) $(compose) up -d
down:
$(docker_compose_bin) $(compose) down
destroy:
$(docker_compose_bin) $(compose) down -v --rmi all