fix: update webdriver configurations
This commit is contained in:
parent
5c1ebede74
commit
0bcd5398dd
@ -128,7 +128,7 @@ AUTH_USER_REGISTRATION = True
|
||||
|
||||
class CeleryConfig: # pylint: disable=too-few-public-methods
|
||||
BROKER_URL = f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_CELERY_DB}"
|
||||
CELERY_IMPORTS = ("superset.sql_lab", "superset.tasks")
|
||||
CELERY_IMPORTS = ("superset.sql_lab", "superset.tasks","superset.tasks.thumbnails",)
|
||||
CELERYD_LOG_LEVEL = "DEBUG"
|
||||
CELERYD_PREFETCH_MULTIPLIER = 1
|
||||
CELERY_ACKS_LATE = False
|
||||
@ -170,8 +170,6 @@ WEBDRIVER_BASEURL = "http://cairn-superset:8000/"
|
||||
# The base URL for the email report hyperlinks.
|
||||
WEBDRIVER_BASEURL_USER_FRIENDLY = "{{ CAIRN_HOST }}"
|
||||
|
||||
WEBDRIVER_OPTION_ARGS = ["--headless"]
|
||||
|
||||
# Avoid duplicate logging because of propagation to root logger
|
||||
logging.getLogger("superset").propagate = False
|
||||
|
||||
@ -179,6 +177,8 @@ logging.getLogger("superset").propagate = False
|
||||
FEATURE_FLAGS = {
|
||||
# Enable dashboard embedding
|
||||
"EMBEDDED_SUPERSET": True,
|
||||
# This feature is stable but known to have bugs from time to time
|
||||
# Alerts and Reports also do not work on arm64 base images
|
||||
"ALERT_REPORTS": True,
|
||||
|
||||
}
|
||||
|
||||
@ -12,22 +12,29 @@ USER root
|
||||
ARG GECKODRIVER_VERSION=v0.33.0 \
|
||||
FIREFOX_VERSION=117.0.1
|
||||
|
||||
RUN apt-get update -qq \
|
||||
&& apt-get install -yqq --no-install-recommends \
|
||||
libnss3 \
|
||||
libdbus-glib-1-2 \
|
||||
libgtk-3-0 \
|
||||
libx11-xcb1 \
|
||||
libasound2 \
|
||||
libxtst6 \
|
||||
wget \
|
||||
pkg-config \
|
||||
# Install GeckoDriver WebDriver
|
||||
&& 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 && rm -rf /var/[log,tmp]/* /tmp/* /var/lib/apt/lists/*
|
||||
|
||||
# https://pypi.org/project/clickhouse-driver/
|
||||
# https://pypi.org/project/mysqlclient/
|
||||
# https://pypi.org/project/clickhouse-connect/
|
||||
# https://pypi.org/project/clickhouse-sqlalchemy/
|
||||
# https://pypi.org/project/Authlib/
|
||||
# We preserve the clickhouse-sqlalchemy package to keep backward compatibility with existing dashboards
|
||||
RUN apt-get update -qq \
|
||||
&& apt-get install -yqq --no-install-recommends wget bzip2 git \
|
||||
# Mysql dependencies
|
||||
default-libmysqlclient-dev build-essential pkg-config gcc \
|
||||
&& 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/*
|
||||
|
||||
RUN --mount=type=cache,target=/root/.cache/pip,sharing=shared pip install \
|
||||
clickhouse-driver==0.2.7 \
|
||||
mysqlclient==2.2.4 \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user