GitHub user dosubot[bot] added a comment to the discussion: Superset 4.1.3 and
firefox image export
<!-- Answer -->
To install Chrome and ChromeDriver for Superset 4.1.3 in Docker, extend your
Docker image with these steps:
```dockerfile
FROM apache/superset:4.1.3
USER root
RUN apt-get update && \
apt-get install -y wget zip libaio1
# Install Google Chrome
RUN export CHROME_VERSION=$(curl --silent
https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_STABLE) &&
\
wget -O google-chrome-stable_current_amd64.deb -q
http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}-1_amd64.deb
&& \
apt-get install -y --no-install-recommends
./google-chrome-stable_current_amd64.deb && \
rm -f google-chrome-stable_current_amd64.deb
# Install ChromeDriver
RUN export CHROMEDRIVER_VERSION=$(curl --silent
https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_STABLE) &&
\
wget -q
https://storage.googleapis.com/chrome-for-testing-public/${CHROMEDRIVER_VERSION}/linux64/chromedriver-linux64.zip
&& \
unzip -j chromedriver-linux64.zip -d /usr/bin && \
chmod 755 /usr/bin/chromedriver && \
rm -f chromedriver-linux64.zip
USER superset
```
In your `superset_config.py`, set:
```python
WEBDRIVER_TYPE = "chrome"
WEBDRIVER_OPTION_ARGS = [
"--force-device-scale-factor=2.0",
"--high-dpi-support=2.0",
"--headless",
"--disable-gpu",
"--disable-dev-shm-usage",
"--no-sandbox",
"--disable-setuid-sandbox",
"--disable-extensions",
]
WEBDRIVER_CONFIGURATION = {
"service": {
"executable_path": "/usr/bin/chromedriver",
"log_output": "/dev/null",
"service_args": [],
"port": 0,
"env": {},
},
"options": {
"capabilities": {},
"preferences": {},
"binary_location": "",
},
}
```
This setup ensures Chrome and ChromeDriver are installed and properly
configured for screenshots and image export in Dockerized Superset. For more
details and troubleshooting, see the [official Superset
documentation](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/docs/docs/configuration/alerts-reports.mdx)
and [recent configuration
discussions](https://github.com/apache/superset/issues/34774).
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do?
[Good](https://app.dosu.dev/response-feedback/23094245-356e-48ae-89ef-78c9db78d724?feedback_type=great_response)
|
[Irrelevant](https://app.dosu.dev/response-feedback/23094245-356e-48ae-89ef-78c9db78d724?feedback_type=irrelevant_answer)
|
[Incorrect](https://app.dosu.dev/response-feedback/23094245-356e-48ae-89ef-78c9db78d724?feedback_type=incorrect_sources)
|
[Verbose](https://app.dosu.dev/response-feedback/23094245-356e-48ae-89ef-78c9db78d724?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/23094245-356e-48ae-89ef-78c9db78d724?feedback_type=hallucination)
| [Report
🐛](https://app.dosu.dev/response-feedback/23094245-356e-48ae-89ef-78c9db78d724?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/23094245-356e-48ae-89ef-78c9db78d724?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34903)
GitHub link:
https://github.com/apache/superset/discussions/34903#discussioncomment-14374849
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]