Skip to content

Commit a4813c3

Browse files
author
Daniel Mellum
committed
update composer.json and local docker testing.
1 parent f3ef483 commit a4813c3

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
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"

docker-compose.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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
"

readme.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff 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
500501
CACHE_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)

runLocalTestInDocker.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)