1
1
mirror of https://github.com/MarginaliaSearch/MarginaliaSearch.git synced 2025-10-05 21:22:39 +02:00

(run) Update install.sh with stronger warnings against non-docker install.

This commit is contained in:
Viktor Lofgren
2024-06-17 13:15:15 +02:00
parent d0d6bb173c
commit 67703e2274

View File

@@ -41,7 +41,7 @@ echo
echo "1) barebones instance (1 node)"
echo "2) barebones instance (2 nodes)"
echo "3) full Marginalia Search instance?"
echo "4) non-docker install? (not recommended)"
echo "4) non-docker install? (proof-of-concept, not recommended)"
echo
read -p "Enter 1, 2, 3, or 4: " INSTANCE_TYPE
@@ -149,17 +149,24 @@ elif [ "${INSTANCE_TYPE}" == "4" ]; then
envsubst < install/docker-compose-scaffold.yml.template >${INSTALL_DIR}/docker-compose.yml
cat <<EOF > ${INSTALL_DIR}/README
Quick note about running Marginalia Search in a non-docker environment:
Quick note about running Marginalia Search in a non-docker environment.
* The template sets up a sample (in-docker) setup for
mariadb and zookeeper. These can also be run outside
of docker, but you will need to update the db.properties
file and "zookeeper-hosts" in the system.properties
file to point to the correct locations/addresses.
* Each service is spawned by the same launcher. When building
the project with "gradlew assemble", the launcher is put in
"code/services-core/single-service-runner/build/distributions/marginalia.tar".
This needs to be extracted.
Beware that this installation mode is more of a proof-of-concept and demonstration that the
system is not unhealthily dependent on docker, than a production-ready setup, and is not
recommended for production use! The container setup is much more robust and easier to manage.
Note: This script only sets up an install directory, and does not build the system.
You will need to build the system with "gradlew assemble" before you can run it.
Each service is spawned by the same launcher. After building the project with
"gradlew assemble", the launcher is put in "code/services-core/single-service-runner/build/distributions/marginalia.tar".
This needs to be extracted!
Note: The template sets up a sample (in-docker) setup for mariadb and zookeeper. These can also be run outside
of docker, but you will need to update the db.properties file and "zookeeper-hosts" in the system.properties
file to point to the correct locations/addresses.
Running:
To launch a process you need to unpack it, and then run the launcher with the
appropriate arguments. For example: