SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] docker and k8s: run searx
Alexandre Flament8ffede6140cc
diff --git a/dockerfiles/docker-entrypoint.sh b/dockerfiles/docker-entrypoint.shindex 2ea2f051b..a8f18f05b 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}" ]; thenexport 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.iniexport 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 lineFORCE_CONF_UPDATE=0DRY_RUN=0diff --git a/docs/admin/installation-docker.rst b/docs/admin/installation-docker.rstindex 9510ded09..b30cdcbd0 100644--- a/docs/admin/installation-docker.rst+++ b/docs/admin/installation-docker.rst@@ -39,7 +39,7 @@ Command linedocker run --rm -it searx/searx -h-.. program-output:: ../dockerfiles/docker-entrypoint.sh -h+.. program-output:: ../dockerfiles/docker-entrypoint.sh helpBuild the image