From 3c5ca51975bd02c56afd9d304e39b93f997f42e6 Mon Sep 17 00:00:00 2001 From: Alexey Rogachev Date: Wed, 30 Oct 2024 17:51:37 +0500 Subject: [PATCH] WIP --- .gitignore | 3 +++ composer.json | 6 ++++++ docker-compose.yml | 7 +++++++ 3 files changed, 16 insertions(+) diff --git a/.gitignore b/.gitignore index c942fd526..d800ee125 100644 --- a/.gitignore +++ b/.gitignore @@ -44,3 +44,6 @@ phpunit.phar #codeception /tests/_output c3.php + +# Docker +docker-compose.override.yml diff --git a/composer.json b/composer.json index 9bcedb8b6..118df7556 100644 --- a/composer.json +++ b/composer.json @@ -61,6 +61,12 @@ }, "autoload-dev": { "psr-4": { + "Yiisoft\\ActiveRecord\\": "vendor/yiisoft/active-record/src", + "Yiisoft\\Db\\Mssql\\": "vendor/yiisoft/db-mssql/src", + "Yiisoft\\Db\\Mysql\\": "vendor/yiisoft/db-mysql/src", + "Yiisoft\\Db\\Oracle\\": "vendor/yiisoft/db-oracle/src", + "Yiisoft\\Db\\Pgsql\\": "vendor/yiisoft/db-pgsql/src", + "Yiisoft\\Db\\Sqlite\\": "vendor/yiisoft/db-sqlite/src", "Yiisoft\\Db\\Tests\\": "tests", "Yiisoft\\ActiveRecord\\Tests\\": "vendor/yiisoft/active-record/tests", "Yiisoft\\Db\\Mssql\\Tests\\": "vendor/yiisoft/db-mssql/tests", diff --git a/docker-compose.yml b/docker-compose.yml index fe8b262ef..57ec3aaf6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,7 @@ services: volumes: - ./src:/code/src - ./tests:/code/tests + - ./composer.json:/code/composer.json - ./phpunit.xml.dist:/code/phpunit.xml.dist command: tail -F anything depends_on: @@ -11,6 +12,12 @@ services: condition: service_healthy postgres: condition: service_healthy + environment: + YII_MYSQL_DATABASE: yii + YII_MYSQL_HOST: mysql + YII_MYSQL_PORT: 3306 + YII_MYSQL_USER: root + YII_MYSQL_PASSWORD: root mysql: image: mysql:9 ports: