-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (30 loc) · 1.11 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
build_docker: init build up
init:
cp app/config/parameters.yml.dist app/config/parameters.yml
build:
docker-compose build --build-arg USER=${USER} --build-arg UID=${UID} php_70
up:
docker-compose up -d
ssh:
docker exec -it php_70 bash
install:
docker exec -u=${USER} -i php_70 bash -c 'make composer'
docker exec -u=${USER} -i php_70 bash -c 'make setfacl'
docker exec -u=${USER} -i php_70 bash -c 'make assetic'
docker exec -u=${USER} -i php_70 bash -c 'make database'
composer:
curl -sS https://getcomposer.org/installer | php -- --install-dir=bin --filename=composer
chmod +x bin/composer || /bin/true
./bin/composer self-update
./bin/composer install --no-interaction -o
setfacl:
setfacl -dR -m u:"www-data":rwX -m u:$(whoami):rwX var
setfacl -R -m u:"www-data":rwX -m u:$(whoami):rwX var
assetic:
php bin/console assetic:dump
database:
php bin/console doctrine:database:create && php bin/console doctrine:schema:create && php bin/console doctrine:fixtures:load -n
stop:
docker-compose stop
cache:
docker exec -u=${USER} -i php_70 bash -c 'bin/console cache:clear --no-warmup && bin/console cache:warmup'