summaryrefslogtreecommitdiff
path: root/dockerfiles
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-09-09 10:28:17 +0200
committerAlexandre Flament <alex@al-f.net>2020-09-10 10:07:49 +0200
commit8ffede6140ccf60933506c18444e315840ac2829 (patch)
tree30238d5dbe5e206c5733a115a9028790f49dffa0 /dockerfiles
parent7e8281792586c43c72caab4f1d484323063d6657 (diff)
[fix] docker and k8s: run searx
fix #2181
Diffstat (limited to 'dockerfiles')
-rwxr-xr-xdockerfiles/docker-entrypoint.sh18
1 files changed, 11 insertions, 7 deletions
diff --git a/dockerfiles/docker-entrypoint.sh b/dockerfiles/docker-entrypoint.sh
index 2ea2f051..a8f18f05 100755
--- a/dockerfiles/docker-entrypoint.sh
+++ b/dockerfiles/docker-entrypoint.sh
@@ -19,21 +19,25 @@ help() {
exit 0
}
-if ! grep docker /proc/1/cgroup -qa; then
- help
-fi
-
export DEFAULT_BIND_ADDRESS="0.0.0.0:8080"
if [ -z "${BIND_ADDRESS}" ]; then
export BIND_ADDRESS="${DEFAULT_BIND_ADDRESS}"
fi
-export SEARX_VERSION=$(su searx -c 'python3 -c "import six; import searx.version; six.print_(searx.version.VERSION_STRING)"' 2>/dev/null)
-printf 'searx version %s\n\n' "${SEARX_VERSION}"
-
export UWSGI_SETTINGS_PATH=/etc/searx/uwsgi.ini
export SEARX_SETTINGS_PATH=/etc/searx/settings.yml
+# Parse special command line
+# see docs/admin/installation-docker.rst
+# display the help message without the version
+if [ "$1" = "help" ]; then
+ help
+fi
+
+# Version
+export SEARX_VERSION=$(su searx -c 'python3 -c "import six; import searx.version; six.print_(searx.version.VERSION_STRING)"' 2>/dev/null)
+printf 'searx version %s\n\n' "${SEARX_VERSION}"
+
# Parse command line
FORCE_CONF_UPDATE=0
DRY_RUN=0