-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (26 loc) · 929 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
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "⚡ \033[34m%-30s\033[0m %s\n", $$1, $$2}'
install: build run
build: ## Build Docker image for local development
docker-compose build
start: run
run: ## Run application Docker. Run 'make build' first
docker-compose up -d
status: ps
ps: ### Alias of docker-composer ps command
docker-compose ps
restart: ## Restart containers
docker-compose restart
test: ### Run unit testing
docker-compose run --rm app sh -c "composer test"
stop: ## Stop application running in Docker
docker-compose kill
destroy: ## Alias docker-compose down command
docker-compose down
down: destroy
logs: ## View container logs
docker-compose logs -ft app
shell: ## Enter bash in running Docker container
docker-compose exec app sh
root: ## Enter bash in running Docker container as root user
docker-compose exec --user root app sh