-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (22 loc) · 911 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
DOCKER-COMPOSE = docker-compose -f docker-compose.yml
EXEC_APP = $(DOCKER-COMPOSE) exec app
SYMFONY = $(EXEC_APP) bin/console
build: ## build project docker containers
$(DOCKER-COMPOSE) build --no-cache
start: ## start the project
$(DOCKER-COMPOSE) up -d
stop: ## stop the project
$(DOCKER-COMPOSE) stop
destroy: ## removes containers, networks, volumes, and images
$(DOCKER-COMPOSE) down --volumes --remove-orphans
vendors: ## install composer dependencies
$(EXEC_APP) composer install --no-interaction
db: ## reset the database
$(SYMFONY) doctrine:database:drop --if-exists --force
$(SYMFONY) doctrine:database:create
$(SYMFONY) doctrine:schema:create
.DEFAULT_GOAL := help
help:
@echo "Please choose a task:"
@grep -E '(^[a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'
.PHONY: help