-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (40 loc) · 1.17 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
include .env
DOCKER_APP = docker-compose exec php
build:
$(DOCKER_COMPOSE) build
pull:
$(DOCKER_COMPOSE) pull
start:
$(DOCKER_COMPOSE) up -d --remove-orphans
stop:
$(DOCKER_COMPOSE) stop
stop-all:
docker stop $$(docker ps -a -q)
exec:
docker exec -it $(CONTAINER_NAME)_php bash
down:
$(DOCKER_COMPOSE) down
prune:
docker system prune
install:
$(DOCKER_COMPOSE) build --build-arg PHP_VERSION=$(PHP_VERSION)
#$(DOCKER_COMPOSE) pull
$(DOCKER_COMPOSE) up -d
docker exec -it $(CONTAINER_NAME)_php bash
stop-remove-all:
docker stop $$(docker ps -a -q)
docker rm $$(docker ps -a -q)
docker rmi $$(docker images -a -q) -f
docker system prune -f
vendor:
$(DOCKER_APP) composer install
node_modules:
$(DOCKER_APP) yarn install
db-test: .env
$(DOCKER_APP) bin/console doctrine:database:drop --if-exists --force
$(DOCKER_APP) bin/console doctrine:database:create --if-not-exists
$(DOCKER_APP) bin/console doctrine:schema:drop --force --no-interaction
$(DOCKER_APP) bin/console doctrine:schema:create --no-interaction
$(DOCKER_APP) bin/console doctrine:fixtures:load --no-interaction --purge-with-truncate -vvv
phpcs:
$(DOCKER_APP) php vendor/bin/php-cs-fixer fix src/