File tree Expand file tree Collapse file tree 4 files changed +18
-7
lines changed
Expand file tree Collapse file tree 4 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 1616 },
1717 "require-dev" : {
1818 "orchestra/testbench" : " >=5.0" ,
19- "mockery/mockery" : " ^ 1.0" ,
20- "nunomaduro/collision" : " ^ 5.10" ,
21- "jenssegers/mongodb" : " ^ 3.8"
19+ "mockery/mockery" : " >= 1.0" ,
20+ "nunomaduro/collision" : " >= 5.10" ,
21+ "jenssegers/mongodb" : " >= 3.8"
2222 },
2323 "suggest" : {
2424 "jenssegers/mongodb" : " Adds support for MongoDB in Laravel/Eloquent"
Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ services:
4646 entrypoint : bash -c "
4747 cd /var/testing &&
4848 composer install --no-interaction &&
49- composer require jenssegers/mongodb --dev &&
5049 dockerize -wait tcp://mariadb:3306 -timeout 1m &&
5150 ./vendor/bin/testbench package:test
5251 "
@@ -76,7 +75,6 @@ services:
7675 entrypoint : bash -c "
7776 cd /var/testing &&
7877 composer install --no-interaction &&
79- composer require jenssegers/mongodb --dev &&
8078 dockerize -wait tcp://mariadb:3306 -timeout 1m &&
8179 ./vendor/bin/testbench package:test
8280 "
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ Uses Laravel native logging functionality.
1818* [ Log Cleanup] ( #log-cleanup )
1919* [ Processors] ( #processors )
2020* [ Lumen Installation] ( #lumen-installation )
21+ * [ Local Testing With Docker] ( #local-testing-with-docker )
2122
2223
2324> :warning : This project should be backwards compatible down to and including Laravel 5.6 and PHP 7.1.
@@ -500,7 +501,19 @@ QUEUE_CONNECTION=redis
500501CACHE_DRIVER=redis
501502```
502503
504+ ## Local Testing With Docker
505+ There is a helper bash script called 'runLocalTestInDocker.sh', that runs the following docker commands:
506+ ```
507+ docker-compose up -d mariadb mongo &&
508+ docker-compose up php7 &&
509+ docker-compose up php8 &&
510+ docker-compose down
511+ ```
512+ To run Docker is required, give execute rights to the script and run:
513+ ```
514+ chmod +x runLocalTestInDocker.sh &&
515+ ./runLocalTestInDocker.sh
516+ ```
503517
504- Development supported by:
505- <br >
518+ ### Development supported by:
506519![ ] ( https://media.giphy.com/media/3knKct3fGqxhK/giphy.gif )
You can’t perform that action at this time.
0 commit comments