Open shubaivanqbee opened 2 years ago
I find out what it's goin on, my mistake, maybe this help for someone
docker-compose exec fpm bash
vendor/bin/bdi lists
# 1. one of the case which I did use manual way
&& apt-get install -y chromium \ && apt-get install -y chromium-driver \
```bash
root@95c5c864abae:/auth_service# /usr/lib/chromium/chromium --version
Chromium 90.0.4430.212
path where located drivers by default if installed it like manual way
root@95c5c864abae:/auth_service# /usr/bin/chromedriver --version
ChromeDriver 90.0.4430.212 (e3cd97fc771b893b7fd1879196d1215b622c2bed-refs/branch-heads/4430@{#1429})
Dockerfile
# Install chrome, required for the symfony/panther library
ENV PANTHER_NO_SANDBOX 1
# Not mandatory, but recommended
ENV PANTHER_CHROME_ARGUMENTS='--headless --no-sandbox --disable-infobars --disable-dev-shm-usage --disable-gpu --disable-extensions --remote-debugging-port=9222'
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O /tmp/chrome.deb
RUN dpkg -i /tmp/chrome.deb || apt-get install -yf
RUN rm /tmp/chrome.deb
Chrome which was downloaded by wget, from Dockerfile located, did not have drivers by default
root@95c5c864abae:/auth_service# /usr/bin/google-chrome --version
Google Chrome 94.0.4606.71
Panther fetch driver by default from /usr/bin/chromedriver
or in drivers dir, have a look please - \Symfony\Component\Panther\ProcessManager\ChromeManager::findChromeDriverBinary
when client created like this
$this->panterClient = static::createPantherClient([
'--remote-debugging-port=9222',
'--no-sandbox',
], [], ['request_timeout_in_ms'=>20000000]);
so for download driver we need use custom way and use for this dbrekelmans/bdi
root@c6ca94b09430:/auth_service# vendor/bin/bdi detect drivers
[OK] chromedriver 94.0.4606.61 installed to drivers/chromedriver
the in \Symfony\Component\Panther\ProcessManager\ChromeManager::findChromeDriverBinary
will be fetched correct binary file
from drivers/chromedriver
root@c6ca94b09430:/auth_service# drivers/chromedriver --version
ChromeDriver 94.0.4606.61 (418b78f5838ed0b1c69bb4e51ea0252171854915-refs/branch-heads/4606@{#1204})
Some time ago everythig works fine, but after rebuild my image I faced with error
composer json
why two was detected two drivers and why in
./drivers
directory present onky one ?when I try to use
I faced with another problem
then I execute
and change code to
and still faced
so my docker file
then try sent request
and faced with error