From 21e9f81d38c67a09690becb8b315ea73076a6361 Mon Sep 17 00:00:00 2001 From: aspedrosa Date: Tue, 29 Mar 2022 13:51:54 +0100 Subject: [PATCH] activate dashboard native filters --- docker/docker-compose.yml | 1 - superset/Dockerfile | 7 ++++--- superset/superset_config_docker.py | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 superset/superset_config_docker.py diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 8b8118f0..655fc32b 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -3,7 +3,6 @@ x-depends-on: &depends-on - redis x-superset-volumes: &superset-volumes - - ../superset/repo/docker:/app/docker - superset_home:/app/superset_home x-superset-environment: &superset-environment CYPRESS_CONFIG: "false" diff --git a/superset/Dockerfile b/superset/Dockerfile index ec04f72d..9865957b 100644 --- a/superset/Dockerfile +++ b/superset/Dockerfile @@ -91,8 +91,8 @@ RUN mkdir -p ${PYTHONPATH} \ libpq-dev \ && rm -rf /var/lib/apt/lists/* -# Copying default configs. No need for a volume -COPY ./repo/docker/pythonpath_dev/superset_config.py ${PYTHONPATH} +# Copying configs. No need for a volume +COPY ./repo/docker/pythonpath_dev/superset_config.py ./superset_config_docker.py /app/pythonpath_docker/ COPY --from=superset-py /usr/local/lib/python3.7/site-packages/ /usr/local/lib/python3.7/site-packages/ # Copying site-packages doesn't move the CLIs, so let's copy them one by one @@ -108,7 +108,8 @@ RUN cd /app \ && pip install -e . COPY ./repo/docker/docker-entrypoint.sh /usr/bin/ -COPY ./repo/docker/docker-bootstrap.sh /usr/bin/ +# copy scripts to start containers to avoid volumes +COPY ./repo/docker/docker-bootstrap.sh ./repo/docker/docker-init.sh ./repo/docker/docker-entrypoint.sh /app/docker/ WORKDIR /app diff --git a/superset/superset_config_docker.py b/superset/superset_config_docker.py new file mode 100644 index 00000000..9602537d --- /dev/null +++ b/superset/superset_config_docker.py @@ -0,0 +1,3 @@ +FEATURE_FLAGS = { + "DASHBOARD_NATIVE_FILTERS": True, +}