Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,360,054
Community Members
 
Community Events
168
Community Groups

Laravel Dusk cannot access Chromedriver on Alpine

I was trying to set up Laravel Dusk on Alpine. It works properly on the local without selenium driver just run only 2 thing

  • Install chromium and chromium-chromedriver
  • Run /usr/bin/chromedriver
  • Run php artisan serve
  • Run php artisan dusk

Next, configure the same with bitbucket-pipelines.yml

script:
- apk add --update --no-cache libzip git mysql-client chromium chromium-chromedriver
- apk add --update --no-cache --virtual .build-deps $PHPIZE_DEPS libxml2-dev jpeg-dev libzip-dev
- docker-php-ext-install bcmath pcntl opcache zip pdo_mysql
- pecl install redis && docker-php-ext-enable redis
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- cp configs/env.pipelines code/.env
- cd code
- composer install -vvv
- php artisan key:generate
- php artisan fixer:fix --dry-run
- php artisan insights --no-interaction
- ./vendor/bin/phpstan analyze app/ --memory-limit=2G
- ./vendor/bin/phpunit -vvv
- /usr/bin/chromedriver &
- php artisan serve --no-reload &
- curl -vk http://localhost:9515
- curl -vk http://localhost:8000/sorry
- php artisan dusk
services:
- database
- redis

I've found pipelines can connect to http://127.0.0.1:8000, but cannot connect to http://127.0.0.1:9515 (Chromedriver)

+ php artisan dusk
Warning: TTY mode requires /dev/tty to be read/writable.
PHPUnit 9.5.10 by Sebastian Bergmann and contributors.
[ Fri Dec 24 21:04:00 2021 ] 127.0.0.1:59748 Closing
EE 2 / 2 (100%)
Time:
00:01.178, Memory: 22.00 MB
There were 2 errors:
1) Tests\Browser\SorryTest::testSorryPageShouldContainValidInfoInThai
Facebook\WebDriver\Exception\UnknownErrorException:
unknown error: net::ERR_NAME_NOT_RESOLVED
(Session info: headless chrome=93.0.4577.82)

Anyone please help or suggest to me. 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

3,462 views 3 10
Read article

Atlassian Community Events