simplify the docker development setup instructions

use `docker compose exec` instead of `docker ps` and `docker exec`

Signed-off-by: Christian Heusel <christian@heusel.eu>
This commit is contained in:
Christian Heusel 2022-12-12 19:47:30 +01:00 committed by Leonidas Spyropoulos
parent 0e44687ab1
commit f41f090ed7

View file

@ -41,11 +41,10 @@ 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:
Luckily such data can be generated.
```sh
docker exec -it <id> /bin/bash
docker compose exec fastapi /bin/bash
pacman -S words fortune-mod
./schema/gendummydata.py dummy.sql
mysql aurweb < dummy.sql