-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (26 loc) · 803 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
PROJECT=`pwd | xargs basename`
TESTIMAGE=${PROJECT}:testing
USER=nginx
up:
env UID=$$(id -u) GID=$$(id -g) docker-compose up --build
down:
docker-compose down
stop:
docker-compose stop
sh:
docker-compose exec --user=${USER} application bash
sh\:db:
docker-compose exec database bash
setup:
cp .env.example .env
env UID=$$(id -u) GID=$$(id -g) docker-compose up
key\:db:
echo "Generating key..."
docker-compose exec --user=${USER} application php artisan key:generate && php artisan config:clear
echo "Migrating and seeding..."
docker-compose exec --user=${USER} application php artisan migrate --seed
migrate:
docker-compose exec --user=${USER} application php artisan migrate
image\:test:
docker build -f Dockerfile.prod -t ${TESTIMAGE} .
GOSS_SLEEP=3 dgoss run -i ${TESTIMAGE}