Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Detect when we are running in Docker.

Alex Vandiver11e322ca29b6
diff --git a/zproject/computed_settings.py b/zproject/computed_settings.py
index da705c11a96..d3d24a4afc7 100644
--- a/zproject/computed_settings.py
+++ b/zproject/computed_settings.py
@@ -177,6 +177,8 @@ if len(sys.argv) > 2 and sys.argv[0].endswith("manage.py") and sys.argv[1] == "p
else:
IS_WORKER = False
+# This should primarily be used to customize error messages
+RUNNING_IN_DOCKER = os.path.exists("/.dockerenv")
# This is overridden in test_settings.py for the test suites
PUPPETEER_TESTS = False