| |
@@ -58,6 +58,22 @@
|
| |
You might also need to adjust `reporting_enabled` and `report_to_resultsdb`,
|
| |
depending on your local settings.
|
| |
|
| |
+ ## Using real-life data from Fedora Infra dumps
|
| |
+
|
| |
+ Sometimes, you might want to check some performance tweaks with real-life data.
|
| |
+ The easy solution might be using our daily dumps and a Postgres instance in Docker::
|
| |
+
|
| |
+ docker run --name postgres_resultsdb -e POSTGRES_USER=resultsdb -e POSTGRES_PASSWORD=resultsdb -d -p 65432:5432 postgres
|
| |
+ wget https://infrastructure.fedoraproject.org/infra/db-dumps/resultsdb.dump.xz
|
| |
+ xzcat resultsdb.dump.xz | docker exec -i postgres_resultsdb psql -Uresultsdb
|
| |
+
|
| |
+ Then just change your config (for DEV environment, you can use `conf/settings.py` file)
|
| |
+ to contain this db connector::
|
| |
+
|
| |
+ SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://resultsdb:resultsdb@localhost:65432/resultsdb'
|
| |
+
|
| |
+ And run as usual.
|
| |
+
|
| |
## Running test suite
|
| |
|
| |
You can run the test suite with the following command (with virtualenv
|
| |