anantmulchandani commented on issue #23057:
URL: https://github.com/apache/superset/issues/23057#issuecomment-2582690300

   Since you are building your image, ensure that in `docker-compose.yml`, 
`target` configuration is set to `dev`:
   ```
   x-common-build: &common-build
     context: .
     target: dev
     ```
   Next, you need to check in `Dockerfile` that `geckodriver` and `firefox` are 
getting installed in the dev (image) stage of building. If not, add this 
snippet.
   ```
   # Install GeckoDriver WebDriver
   ARG GECKODRIVER_VERSION=v0.34.0 \
       FIREFOX_VERSION=125.0.3
   
   RUN apt-get update -qq \
       && apt-get install -yqq --no-install-recommends wget bzip2 \
       && wget -q 
https://github.com/mozilla/geckodriver/releases/download/${GECKODRIVER_VERSION}/geckodriver-${GECKODRIVER_VERSION}-linux64.tar.gz
 -O - | tar xfz - -C /usr/local/bin \
       # Install Firefox
       && wget -q 
https://download-installer.cdn.mozilla.net/pub/firefox/releases/${FIREFOX_VERSION}/linux-x86_64/en-US/firefox-${FIREFOX_VERSION}.tar.bz2
 -O - | tar xfj - -C /opt \
       && ln -s /opt/firefox/firefox /usr/local/bin/firefox \
       && apt-get autoremove -yqq --purge wget bzip2 && rm -rf /var/[log,tmp]/* 
/tmp/* /var/lib/apt/lists/*
   ```
   Upon successful completion of your build and once the containers are up, you 
can enter into the running containers using
   `docker exec -it superset_app bash`
   Inside the container, validate the geckodriver installation by executing the 
commands:
   ```
   geckodriver --version
   which geckodriver 
   ```
   Ensure that the location of `geckodriver` installation (usually 
`/usr/local/bin`) is added there in `PATH`
   
   This should help you send image/pdf reports for which geckodriver and 
firefox are required in headless browser mode.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to