-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (27 loc) · 981 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
38
39
40
PROJECTROOTDIR = $(CURDIR)
build:
docker-compose build
start:
docker-compose up -d
stop:
docker-compose stop
down:
docker-compose down --volumes
ssh:
docker exec -it spotify_app bash
ssh-db:
docker exec -it spotify_db bash
fix:
docker run --entrypoint "" --rm -it -v $(CURDIR)/app:/var/www/html -v $(CURDIR)/phpcs.xml:/var/www/html/phpcs.xml php:7.4-apache bash -c "cd /var/www/html && php vendor/bin/phpcbf"
stan:
docker run --entrypoint "" --rm -it -v $(CURDIR)/phpstan.neon:/var/www/html/phpstan.neon -v $(CURDIR)/app:/var/www/html php:7.4-apache bash -c "cd /var/www/html && php vendor/bin/phpstan analyse"
phpcs:
docker run --entrypoint "" --rm -it -v $(CURDIR)/phpcs.xml:/var/www/html/phpcs.xml -v $(CURDIR)/app:/var/www/html php:7.4-apache bash -c "cd /var/www/html && php vendor/bin/phpcs"
curdir:
cd ${PROJECTROOTDIR}
open:
open http://127.0.0.1:8099/
list:
docker container ls
nfs:
${PROJECTROOTDIR}/docker/scripts/nfsconfig.sh ${PROJECTROOTDIR}