-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
55 lines (38 loc) · 1.25 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
start: app
test: clean testSh composer rmTestDb upTestDb yiimigratetestDb rmTestDb
docker-compose run --rm cli bash -c 'MYSQL_HOST=testDb MYSQL_DATABASE=test ./vendor/bin/codecept --debug run unit'
testSh:
shellcheck application/console/views/cron/scripts/upload/default/*.sh
app: upDb composer yiimigrate adminer
docker-compose up -d cron web
composer:
docker-compose run --rm --user="0:0" cli composer install
composerupdate:
docker-compose run --rm --user="0:0" cli composer update
cli:
docker-compose run --rm --user="0:0" cli bash
rmDb:
docker-compose kill db
docker-compose rm -f db
upDb:
docker-compose up -d db
yiimigrate:
docker-compose run --rm cli whenavail db 3306 100 ./yii migrate --interactive=0
basemodels:
docker-compose run --rm cli whenavail db 3306 100 ./rebuildbasemodels.sh
yiimigratetestDb:
docker-compose run --rm cli bash -c 'MYSQL_HOST=testDb MYSQL_DATABASE=test whenavail testDb 3306 100 ./yii migrate --interactive=0'
rmTestDb:
docker-compose kill testDb
docker-compose rm -f testDb
upTestDb:
docker-compose up -d testDb
bounce:
docker-compose up -d cron web
clean:
docker-compose kill
docker-compose rm -f
cleanVolumes:
docker volume rm `docker volume ls -qf dangling=true`
adminer:
docker-compose up -d adminer