-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (23 loc) · 1.25 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
.DEFAULT_GOAL := help
PWD ?= $$(pwd)
USERID ?= $$(id -u)
build-backend: ## Build the docker image of back-end
docker-compose -f back-end/docker-compose.yml build
build-backend-nocache: ## Build the docker image of back-end
docker-compose -f back-end/docker-compose.yml build --no-cache
start-backend: ## Build and Start the docker container of back-end
docker-compose -f back-end/docker-compose.yml up -d
stop-backend: ## Stop the docker container of back-end
docker-compose -f back-end/docker-compose.yml stop
tests-backend: ## Run Tests on the docker container of back-end
docker-compose -f back-end/docker-compose.yml exec api npm test
build-backend: ## Build the docker image of back-end
docker-compose -f back-end/docker-compose.yml build
build-front-nocache: ## Build the docker image of back-end
docker-compose -f front-end/docker-compose.yml build --no-cache
start-front: ## Build and Start the docker container of back-end
docker-compose -f front-end/docker-compose.yml up -d
stop-front: ## Stop the docker container of back-end
docker-compose -f front-end/docker-compose.yml stop
help: ## generate this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'