-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
35 lines (25 loc) · 777 Bytes
/
makefile
File metadata and controls
35 lines (25 loc) · 777 Bytes
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
.PHONY: build down install shell start test up
APP_NAME=app
build:
docker-compose build
install:
docker-compose build && docker-compose up -d
@echo "You can now access the application at http://localhost:8000"
start:
docker-compose up -d
@echo "You can now access the application at http://localhost:8000"
up:
docker-compose up -d
down:
docker-compose down
# This is a common Makefile target for a web service
shell:
docker-compose exec $(APP_NAME) bash
# Or for a different service, like a database
# shell-db:
# docker-compose exec database sh
# If you need to run it on a service that isn't currently running, use 'run'
# shell-new:
# docker-compose run --rm web sh
test:
docker-compose exec $(APP_NAME) vendor/bin/phpunit tests --colors=always --testdox