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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.