New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUESTION] Chrome Driver - Docker image #121
Comments
You need to install the |
@dunglas Thanks for the help, does the |
No, it installs the extension providing the ZipArchive class, but not the unzip binary. |
And ... stupid question but how can I install it using the php-fpm alpine image? Here's my new line related to the RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS libzip-dev zip icu-dev postgresql-dev gnupg graphviz make autoconf git unzip zlib-dev curl chromium chromium-chromedriver go rabbitmq-c rabbitmq-c-dev \
&& docker-php-ext-configure pgsql --with-pgsql=/usr/local/pgsql \
&& docker-php-ext-configure zip --with-libzip \
&& docker-php-ext-install zip intl pdo_pgsql pdo_mysql opcache json pdo_pgsql pgsql mysqli \
&& pecl install apcu redis grpc protobuf amqp \
&& docker-php-ext-enable apcu mysqli redis grpc protobuf amqp Can seem stupid but I don't find a correct way to install it ... 🤔 |
I'm not sure if it's possible to use Chromedriver on Alpine. I'll give a try asap. |
@Guikingone hello, did you finally managed to make it work? |
@Guikingone for Alpine Linux, the simplest solution is to use alternative binary RUN apk add --no-cache \
chromium \
chromium-chromedriver
ENV PANTHER_CHROME_DRIVER_BINARY /usr/lib/chromium/chromedriver |
@alexsegura I've not found a viable solution, yours work (except that now, Chrome crash): 1) App\Tests\UI\Action\Security\RegistrationActionSystemTest::testResponseSuccess with data set #0 ('/fr/enregistrement', 'Créer un compte')
Facebook\WebDriver\Exception\UnknownServerException: unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/lib/chromium/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=2.38 (f91d32489882be7df38da3422a19713bfd113fa5),platform=Linux 4.9.125-linuxkit x86_64)
/var/www/cyclepath/vendor/facebook/webdriver/lib/Exception/WebDriverException.php:114
/var/www/cyclepath/vendor/facebook/webdriver/lib/Remote/HttpCommandExecutor.php:326
/var/www/cyclepath/vendor/facebook/webdriver/lib/Remote/RemoteWebDriver.php:126
/var/www/cyclepath/vendor/symfony/panther/src/ProcessManager/ChromeManager.php:59
/var/www/cyclepath/vendor/symfony/panther/src/Client.php:80
/var/www/cyclepath/vendor/symfony/panther/src/Client.php:272
/var/www/cyclepath/vendor/symfony/panther/src/Client.php:186
/var/www/cyclepath/tests/UI/Action/Security/RegistrationActionSystemTest.php:51 Maybe the IP and port which stop it? |
Ok, seems to work (thanks to the PANTHER_NO_SANDBOX env variable), @dunglas maybe it could be a good idea to give the @alexsegura solution a small place in the |
I agree! Is one of you interested in opening a PR? |
Here it is 🙂 #131 |
I also neede to add PANTHER_WEB_SERVER_PORT to make it work (in an Alpine 3.9 used in docker-compose).
|
Hi everyone,
Small question about the usage of Panther into a PHP Alpine image, I've tried to install Chromedriver and chromium but here's the error that I get:
For information, here's the Dockerfile:
I don't really see where the problem is coming from and i've search to see if someone has the same problem but nothing about this type of error, does anyone has an idea ?
PS: I've tried the installation recommanded by the documentation but the driver doesn't seem to be found
Thanks for the help :)
The text was updated successfully, but these errors were encountered: