From eafbbf62b771dfdec00f15138bda28c6418c4b49 Mon Sep 17 00:00:00 2001 From: Alexander Mancevice Date: Tue, 16 Jan 2018 09:35:53 -0500 Subject: [PATCH] Add /home/supserset as config location --- Dockerfile | 5 +++-- README.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e6ecc7d85..f1fa195e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ARG SUPERSET_VERSION=0.22.1 # Configure environment ENV LANG=C.UTF-8 \ LC_ALL=C.UTF-8 \ - PYTHONPATH=/etc/superset:$PYTHONPATH \ + PYTHONPATH=/etc/superset:/home/superset:$PYTHONPATH \ SUPERSET_VERSION=${SUPERSET_VERSION} \ SUPERSET_HOME=/var/lib/superset @@ -45,7 +45,8 @@ RUN useradd -U -m superset && \ # Configure Filesystem COPY superset /usr/local/bin -VOLUME /etc/superset \ +VOLUME /home/superset \ + /etc/superset \ /var/lib/superset WORKDIR /home/superset diff --git a/README.md b/README.md index c0217674c..580614d58 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ View the contents of the [`examples`](./examples) directory to see some simple ` The image defines two data volumes: one for mounting configuration into the container, and one for data (logs, SQLite DBs, &c). -The configuration volume is located at `/etc/superset`. This directory is included in the `PYTHONPATH` of the image. Mount any configuration (specifically the `superset_config.py` file) here. +The configuration volume is located alternatively at `/etc/superset` or `/home/superset`; either is acceptable. Both of these directories are included in the `PYTHONPATH` of the image. Mount any configuration (specifically the `superset_config.py` file) here to have it read by the app on startup. The data volume is located at `/var/lib/superset` and it is where you would mount your SQLite file (if you are using that as your backend), or a volume to collect any logs that are routed there. This location is used as the value of the `SUPERSET_HOME` environmental variable.