-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
57 lines (39 loc) · 1014 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
DOCKER_FILE := ./docker/Dockerfile
DOCKER_FILE_DEV := ./docker/Dockerfile.dev
DOCKER_APP_NAME := dedi-app
DOCKER_DEV := -f docker-compose-dev.yml
DOCKER_DEV_EXEC := ${DOCKER_DEV} exec ${DOCKER_APP_NAME}
DOCKER_IMAGES := app-dedi-service:latest
DOCKER_IMAGES_DEV := app-dedi-service-dev:latest
install:
npm install
dev:
npm run dev
start:
npm run start
build:
npm run build
lint:
npm run lint
migrate:
npm run migrate
rollback:
npm run rollback
docker-run:
docker-compose up -d
docker-stop:
docker-compose down
docker-build:
docker build -f ${DOCKER_FILE} -t ${DOCKER_IMAGES} .
docker-run-dev-build:
docker build -f ${DOCKER_FILE_DEV} -t ${DOCKER_IMAGES} .
docker-run-dev:
docker-compose ${DOCKER_DEV} up -d
docker-run-dev-stop:
docker-compose ${DOCKER_DEV} down
docker-run-dev-test:
docker-compose ${DOCKER_DEV_EXEC} npm run test
docker-run-dev-migrate:
docker-compose ${DOCKER_DEV_EXEC} npm run migrate
docker-run-dev-rollback:
docker-compose ${DOCKER_DEV_EXEC} npm run rollback