-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·47 lines (33 loc) · 914 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
#!/bin/bash
DOCKER_CONTAINER = transportesapp
DOCKER_DB = dbcenter
SPORT = --service-ports
DCOMPOSER = docker-compose
OS := $(shell uname)
help: ## Show this help message
@echo 'usage: make [target]'
@echo
@echo 'targets:'
@egrep '^(.+)\:\ ##\ (.+)' ${MAKEFILE_LIST} | column -t -c 2 -s ':#'
run:
docker-compose up -d
run-back:
cd ../transportesapi
docker-compose up -d
stop:
docker-compose stop
down:
docker-compose down
restart:
$(MAKE) stop && $(MAKE) run
bash:
docker-compose exec ${DOCKER_CONTAINER} /bin/sh
inspectdb:
docker inspect ${DOCKER_DB}
dev:
docker-compose run --rm --service-ports ${DOCKER_CONTAINER} npm run dev
db: ## Solo si dbcenter se encuentra en el mismo directorio que smartclaims
cd ../dbcenter
docker-compose up -d
up-full: ## Solo si dbcenter se encuentra en el mismo directorio que smartclaims
$(MAKE) db && $(MAKE) run && $(MAKE) run-back && $(MAKE) dev