mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
docs(docker): explain how to generate dummy data
This commit is contained in:
parent
27f30212e8
commit
d92f183840
1 changed files with 16 additions and 1 deletions
|
@ -16,7 +16,7 @@ systemctl start docker.service
|
||||||
The main image - `aurweb` - must be built manually:
|
The main image - `aurweb` - must be built manually:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker compose build aurweb-image
|
docker compose build
|
||||||
```
|
```
|
||||||
|
|
||||||
### Starting and Stopping the Services
|
### Starting and Stopping the Services
|
||||||
|
@ -38,6 +38,21 @@ With a running cluster, execute the following in a new terminal:
|
||||||
docker compose run test
|
docker compose run test
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Generating Dummy Data
|
||||||
|
|
||||||
|
Before you can make meaningful queries to the cluster, it needs some data.
|
||||||
|
Luckily such data can be generated. First, `docker ps` to discover the ID of the
|
||||||
|
container running the FastAPI. Then:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
docker exec -it <id> /bin/bash
|
||||||
|
./scheme/gendummydata.py dummy.sql
|
||||||
|
mysql aurweb < dummy.sql
|
||||||
|
```
|
||||||
|
|
||||||
|
The generation script may prompt you to install other Arch packages before it
|
||||||
|
can proceed.
|
||||||
|
|
||||||
### Querying the RPC
|
### Querying the RPC
|
||||||
|
|
||||||
The Fast (Python) API runs on Port 8444, while the legacy PHP version runs
|
The Fast (Python) API runs on Port 8444, while the legacy PHP version runs
|
||||||
|
|
Loading…
Add table
Reference in a new issue