Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Marcus Andersson
aurweb
Commits
d92f1838
Unverified
Commit
d92f1838
authored
Feb 23, 2022
by
Colin Woodbury
Browse files
docs(docker): explain how to generate dummy data
parent
27f30212
Changes
1
Hide whitespace changes
Inline
Side-by-side
docker/README.md
View file @
d92f1838
...
...
@@ -16,7 +16,7 @@ systemctl start docker.service
The main image -
`aurweb`
- must be built manually:
```
sh
docker compose build
aurweb-image
docker compose build
```
### Starting and Stopping the Services
...
...
@@ -38,6 +38,21 @@ With a running cluster, execute the following in a new terminal:
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
The Fast (Python) API runs on Port 8444, while the legacy PHP version runs
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment