Actually I'm starting experimenting with this .yml I found in the internet
image: php:7.2
pipelines:
default:
- step:
caches:
- composer
script:
- apt-get update && apt-get install -y zlib1g-dev pkg-config libssl-dev openssl
- pecl install mongodb
- docker-php-ext-enable mongodb
- docker-php-ext-install zip
- docker-php-ext-enable zip
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- cp .env.testing .env
- composer install
- php artisan key:generate
- sleep 10
- vendor/bin/phpunit
services:
- mongo
definitions:
services:
mongo:
image: mongo
I think the problem is simply the url of the db server. How can I set the current ip of mongodb?
1) Tests\Unit\BrandTest::test
MongoDB\Driver\Exception\ConnectionTimeoutException:
No suitable servers found (`serverSelectionTryOnce` set):
[connection refused calling ismaster on '127.0.0.1:65231']
I figured out that problem is that we cannot configure mongo port.
So I created a new mongo db connection in Laravel database.php config file where I am using standard port and (damn) no username and password and create a new .env.pipeline file.
In the yaml i force use of new mongo connection, specific for pipeline.
At build time, I copy .env.pipeline as .env
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I figured out that problem is that (damn ,,, ) we cannot configure mongo port.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.