diff --git a/RELEASING/Dockerfile.from_local_tarball b/RELEASING/Dockerfile.from_local_tarball index 4860db64287cc..b55bbe870b1d0 100644 --- a/RELEASING/Dockerfile.from_local_tarball +++ b/RELEASING/Dockerfile.from_local_tarball @@ -61,6 +61,7 @@ RUN pip install --upgrade setuptools pip \ RUN flask fab babel-compile --target superset/translations ENV PATH=/home/superset/superset/bin:$PATH \ - PYTHONPATH=/home/superset/superset/:$PYTHONPATH + PYTHONPATH=/home/superset/superset/:$PYTHONPATH \ + SUPERSET_TESTENV=true COPY from_tarball_entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] diff --git a/RELEASING/from_tarball_entrypoint.sh b/RELEASING/from_tarball_entrypoint.sh index a2ddfb4f89d30..fcdfe86644884 100755 --- a/RELEASING/from_tarball_entrypoint.sh +++ b/RELEASING/from_tarball_entrypoint.sh @@ -19,6 +19,7 @@ set -ex echo "[WARNING] this entrypoint creates an admin/admin user" echo "[WARNING] it should only be used for lightweight testing/validation" +if $SUPERSET_TESTENV then echo "SUPERSET IS RUNNING IN TEST MODE" # Create an admin user (you will be prompted to set username, first and last name before setting a password) superset fab create-admin \