2023-03-04 13:35:50 +00: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.
|
|
|
|
|
|
|
|
## Set up
|
|
|
|
|
|
|
|
While the system is designed to run bare metal in production,
|
|
|
|
for local development, you're strongly encouraged to use docker
|
|
|
|
or podman.
|
|
|
|
|
|
|
|
From a fresh to running system, you'll need to do this:
|
|
|
|
|
2023-03-04 15:06:36 +00:00
|
|
|
From the project root run the one-time setup, it will create the
|
|
|
|
basic runtime directory structure
|
2023-03-04 13:35:50 +00:00
|
|
|
```
|
|
|
|
$ run/setup.sh
|
2023-03-04 15:06:36 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Next, compile the project and build docker images
|
2023-03-04 13:35:50 +00:00
|
|
|
|
2023-03-04 15:06:36 +00:00
|
|
|
```
|
2023-03-04 14:17:02 +00:00
|
|
|
$ ./gradlew assemble docker
|
2023-03-04 15:06:36 +00:00
|
|
|
```
|
2023-03-04 14:17:02 +00:00
|
|
|
|
2023-03-04 15:06:36 +00:00
|
|
|
Next, download a sample of crawl data, process it and stick the metadata
|
|
|
|
into the database. The data is only downloaded once.
|
|
|
|
|
|
|
|
Grab a cup of coffee, this takes a few minutes.
|
2023-03-04 13:35:50 +00:00
|
|
|
|
2023-03-04 15:06:54 +00:00
|
|
|
This needs to be done whenever the crawler or processor has changed.
|
2023-03-04 15:06:36 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
$ docker-compose up -d mariadb
|
2023-03-04 13:35:50 +00:00
|
|
|
$ run/reconvert.sh
|
2023-03-04 15:06:36 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Now we're ready to bring the system online.
|
2023-03-04 13:35:50 +00:00
|
|
|
|
2023-03-04 15:06:36 +00:00
|
|
|
```
|
2023-03-04 13:35:50 +00:00
|
|
|
$ docker-compose up
|
|
|
|
```
|
|
|
|
|
2023-03-04 15:06:36 +00:00
|
|
|
Since we've just processed new crawl data, the system needs to construct static
|
|
|
|
indexes. This takes a moment. Wait for the line 'Auto-conversion finished!'
|
2023-03-04 15:02:02 +00:00
|
|
|
|
2023-03-04 15:06:36 +00:00
|
|
|
When all is done, it should be possible to visit
|
|
|
|
[http://localhost:8080](http://localhost:8080) and try a few searches!
|
2023-03-04 15:02:02 +00:00
|
|
|
|