From f4035e096f99549fe2dc6f19fd5daabe0f0f23be Mon Sep 17 00:00:00 2001 From: Elizabeth Thompson Date: Fri, 17 Mar 2023 17:39:37 -0700 Subject: [PATCH] chore: update releasing process for testing (#23331) --- RELEASING/Dockerfile.from_local_tarball | 3 ++- RELEASING/from_tarball_entrypoint.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASING/Dockerfile.from_local_tarball b/RELEASING/Dockerfile.from_local_tarball index 4860db642..b55bbe870 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 a2ddfb4f8..fcdfe8664 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 \