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

59 lines
1.7 KiB
Markdown
Raw Normal View History

2023-03-04 14:35:50 +01:00
# Run
When developing locally, this directory will contain run-time data required for
the search engine. In a clean check-out, it only contains the tools required to
bootstrap this directory structure.
2023-03-06 18:45:01 +01:00
## Requirements
2023-03-04 14:35:50 +01:00
While the system is designed to run bare metal in production,
for local development, you're strongly encouraged to use docker
2023-03-06 18:45:01 +01:00
or podman. These are a bit of a pain to install, but if you follow
[this guide](https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository)
you're on the right track.
2023-03-04 14:35:50 +01:00
2023-03-06 18:45:01 +01:00
## Set up
2023-03-04 16:12:37 +01:00
To go from a clean check out of the git repo to a running search engine,
follow these steps. You're assumed to sit in the project root the whole time.
2023-03-04 14:35:50 +01:00
2023-03-04 16:12:37 +01:00
1. Run the one-time setup, it will create the
2023-03-04 16:14:03 +01:00
basic runtime directory structure and download some models and data that doesn't
come with the git repo because git deals poorly with large binary files.
2023-03-04 16:14:03 +01:00
2023-03-04 14:35:50 +01:00
```
$ run/setup.sh
2023-03-04 16:06:36 +01:00
```
2023-03-04 16:12:37 +01:00
2. Compile the project and build docker images
2023-03-04 14:35:50 +01:00
2023-03-04 16:06:36 +01:00
```
2023-03-04 15:17:02 +01:00
$ ./gradlew assemble docker
2023-03-04 16:06:36 +01:00
```
2023-03-04 15:17:02 +01:00
3. Initialize the database
2023-03-04 16:06:36 +01:00
```
$ docker-compose up -d mariadb
$ ./gradlew flywayMigrate
2023-03-04 16:06:36 +01:00
```
2023-03-04 16:12:37 +01:00
4. Bring the system online. We'll run it in the foreground in the terminal this time
because it's educational to see the logs. Add `-d` to run in the background.
2023-03-04 16:06:36 +01:00
```
2023-03-04 14:35:50 +01:00
$ docker-compose up
```
5. You should now be able to access the system.
| Address | Description |
|-------------------------|------------------|
| https://localhost:8080/ | User-facing GUI |
| https://localhost:8081/ | Operator's GUI |
6. Download Sample Data
TODO: How?
## Experiment Runner
The script `experiment.sh` is a launcher for the experiment runner, which is useful when
evaluating new algorithms in processing crawl data.