Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

- 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 | 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
- database
- redis

I've found pipelines can connect to, but cannot connect to (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 ] Closing
EE 2 / 2 (100%)
00:01.178, Memory: 22.00 MB
There were 2 errors:
1) Tests\Browser\SorryTest::testSorryPageShouldContainValidInfoInThai
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
Community showcase
Published in Bitbucket

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,449 views 4 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you