mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 13:09:00 +00:00
WIP run and setup
This commit is contained in:
parent
3cebc08826
commit
d3fa7d5181
21
README.md
21
README.md
@ -9,26 +9,7 @@ requiring datacenters and expensive enterprise hardware, to run this operation o
|
|||||||
|
|
||||||
## Set up instructions
|
## Set up instructions
|
||||||
|
|
||||||
For local development, you're strongly encouraged to use docker or podman.
|
Follow instructions in [run](run/).
|
||||||
From a fresh to running system, you'll need to do this:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ ./gradlew assemble
|
|
||||||
|
|
||||||
$ ./gradlew docker
|
|
||||||
|
|
||||||
$ vim run/settings.profile
|
|
||||||
|
|
||||||
(follow instructions in file)
|
|
||||||
|
|
||||||
$ run/setup.sh
|
|
||||||
|
|
||||||
$ run/reconvert.sh
|
|
||||||
|
|
||||||
$ docker-compose up
|
|
||||||
```
|
|
||||||
|
|
||||||
Wait a moment and check out [https://localhost:8080](https://localhost:8080).
|
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
|
28
run/readme.md
Normal file
28
run/readme.md
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# 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:
|
||||||
|
|
||||||
|
From the project root
|
||||||
|
```
|
||||||
|
$ ./gradlew assemble docker
|
||||||
|
|
||||||
|
$ run/setup.sh
|
||||||
|
|
||||||
|
$ docker-compose up -d mariadb
|
||||||
|
|
||||||
|
$ run/reconvert.sh
|
||||||
|
|
||||||
|
$ docker-compose up
|
||||||
|
```
|
||||||
|
|
||||||
|
Wait a moment and check out [http://localhost:8080](http://localhost:8080).
|
7
run/setup.sh
Executable file
7
run/setup.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
pushd $(dirname $0)
|
||||||
|
|
||||||
|
popd
|
Loading…
Reference in New Issue
Block a user