Skip to content

Commit

Permalink
Add /home/supserset as config location
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Mancevice committed Jan 16, 2018
1 parent 1682174 commit eafbbf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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.

Expand Down

0 comments on commit eafbbf6

Please sign in to comment.