-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove explicit call to docker-compose
- Loading branch information
Showing
2 changed files
with
22 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,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' | ||
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 | ||
docker compose up -d cron web | ||
|
||
composer: | ||
docker-compose run --rm --user="0:0" cli composer install | ||
docker compose run --rm --user="0:0" cli composer install | ||
|
||
composerupdate: | ||
docker-compose run --rm --user="0:0" cli composer update | ||
docker compose run --rm --user="0:0" cli composer update | ||
|
||
cli: | ||
docker-compose run --rm --user="0:0" cli bash | ||
docker compose run --rm --user="0:0" cli bash | ||
|
||
rmDb: | ||
docker-compose kill db | ||
docker-compose rm -f db | ||
docker compose kill db | ||
docker compose rm -f db | ||
|
||
upDb: | ||
docker-compose up -d db | ||
docker compose up -d db | ||
|
||
yiimigrate: | ||
docker-compose run --rm cli whenavail db 3306 100 ./yii migrate --interactive=0 | ||
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 | ||
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' | ||
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 | ||
docker compose kill testDb | ||
docker compose rm -f testDb | ||
|
||
upTestDb: | ||
docker-compose up -d testDb | ||
docker compose up -d testDb | ||
|
||
bounce: | ||
docker-compose up -d cron web | ||
docker compose up -d cron web | ||
|
||
clean: | ||
docker-compose kill | ||
docker-compose rm -f | ||
docker compose kill | ||
docker compose rm -f | ||
|
||
cleanVolumes: | ||
docker volume rm `docker volume ls -qf dangling=true` | ||
|
||
adminer: | ||
docker-compose up -d adminer | ||
docker compose up -d adminer |