mirror of
https://github.com/searxng/searxng.git
synced 2024-11-16 17:40:11 +01:00
c90e157ddd
[1] https://wiki.ubuntu.com/Releases Tested by:: # build the container .. $ sudo -H ./utils/lxc.sh build searxng-ubu2204 # install a complete SearXNG suite .. $ sudo -H ./utils/lxc.sh cmd searxng-ubu2204 FORCE_TIMEOUT=0 ./utils/searxng.sh install all # install nginx to export the SearXNG instance by HTTP $ sudo -H ./utils/lxc.sh cmd searxng-ubu2204 FORCE_TIMEOUT=0 ./utils/searxng.sh install nginx # check instance $ sudo -H ./utils/lxc.sh cmd searxng-ubu2204 FORCE_TIMEOUT=0 ./utils/searxng.sh instance check INFO: [searxng-ubu2204] FORCE_TIMEOUT=0 ./utils/searxng.sh instance check INFO: wrapper: utils/searxng.sh instance _call searxng.check SearXNG checks -------------- ... INFO searx : merge the default settings ( /usr/local/searxng/searxng-src/searx/settings.yml ) and the user settings ( /etc/searxng/settings.yml ) INFO searx : max_request_timeout=None INFO searx.redisdb : connecting to Redis db=0 path='/usr/local/searxng-redis/run/redis.sock' INFO searx.redisdb : connected to Redis Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
69 lines
2.0 KiB
Bash
69 lines
2.0 KiB
Bash
# -*- coding: utf-8; mode: sh indent-tabs-mode: nil -*-
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
# shellcheck shell=bash
|
|
|
|
# This file is a setup of a LXC suite. It is sourced from different context, do
|
|
# not manipulate the environment directly, implement functions and manipulate
|
|
# environment only in subshells.
|
|
|
|
lxc_set_suite_env() {
|
|
|
|
export LXC_SUITE_NAME="searxng"
|
|
|
|
# name of https://images.linuxcontainers.org
|
|
export LINUXCONTAINERS_ORG_NAME="${LINUXCONTAINERS_ORG_NAME:-images}"
|
|
export LXC_HOST_PREFIX="${LXC_SUITE_NAME:-searx}"
|
|
export LXC_SUITE=(
|
|
|
|
# end of standard support see https://wiki.ubuntu.com/Releases
|
|
"$LINUXCONTAINERS_ORG_NAME:ubuntu/20.04" "ubu2004" # LTS EOSS April 2025
|
|
"$LINUXCONTAINERS_ORG_NAME:ubuntu/22.04" "ubu2204" # LTS EOSS April 2027
|
|
|
|
# EOL see https://fedoraproject.org/wiki/Releases
|
|
"$LINUXCONTAINERS_ORG_NAME:fedora/35" "fedora35"
|
|
|
|
# rolling releases see https://www.archlinux.org/releng/releases/
|
|
"$LINUXCONTAINERS_ORG_NAME:archlinux" "archlinux"
|
|
)
|
|
}
|
|
|
|
lxc_suite_install_info() {
|
|
(
|
|
lxc_set_suite_env
|
|
cat <<EOF
|
|
LXC suite: ${LXC_SUITE_NAME}
|
|
Suite includes installation of SearXNG
|
|
images: ${LOCAL_IMAGES[*]}
|
|
containers: ${CONTAINERS[*]}
|
|
EOF
|
|
)
|
|
}
|
|
|
|
lxc_suite_install() {
|
|
(
|
|
lxc_set_suite_env
|
|
FORCE_TIMEOUT=0
|
|
export FORCE_TIMEOUT
|
|
"${LXC_REPO_ROOT}/utils/searxng.sh" install all
|
|
rst_title "suite installation finished ($(hostname))" part
|
|
lxc_suite_info
|
|
echo
|
|
)
|
|
}
|
|
|
|
lxc_suite_info() {
|
|
(
|
|
lxc_set_suite_env
|
|
for ip in $(global_IPs) ; do
|
|
if [[ $ip =~ .*:.* ]]; then
|
|
info_msg "(${ip%|*}) IPv6: http://[${ip#*|}]"
|
|
else
|
|
# IPv4:
|
|
# shellcheck disable=SC2034,SC2031
|
|
info_msg "(${ip%|*}) docs-live: http://${ip#*|}:8080/"
|
|
fi
|
|
done
|
|
"${LXC_REPO_ROOT}/utils/searxng.sh" searxng.instance.env
|
|
)
|
|
}
|