Public | Automated Build

Last pushed: a day ago
Short Description
just the minimum
Full Description

PHP image to run dusk on Pipelines

This is a simple PHP 7.2 image which contain just the minimum required to run Laravel Dusk on bitbucket pipelines.

You can read more about it from this post

bitbucket-pipeline example

This is just an example, the content of the file .env.dusk is not different that .env.example except that
the APP_URL value is http://localhost:8000 since am using artisan serve command.


Your bitbucket-pipeline.yml should look like this:

# This is a sample build configuration for PHP.
# Check our guides at for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: zaherg/php-7.2-dusk-bitbucket-pipelines:latest

    - step:
          - composer
          - cp .env.dusk .env
          - composer install --no-progress --no-suggest --prefer-dist
          - php artisan serve &
          - php artisan dusk

Duck configuration:

To make it work, you will need to make sure that you add the argument --no-sandbox to your options so the function
should look like

     * Create the RemoteWebDriver instance.
     * @return \Facebook\WebDriver\Remote\RemoteWebDriver
    protected function driver()
        $options = (new ChromeOptions)->addArguments([

        return RemoteWebDriver::create(
            'http://localhost:9515', DesiredCapabilities::chrome()->setCapability(
                ChromeOptions::CAPABILITY, $options
Docker Pull Command