reanahub / reana

REANA: Reusable research data analysis platform
https://docs.reana.io
MIT License
127 stars 54 forks source link

util: create a script to populate DB with quota info #415

Closed mvidalgarcia closed 4 years ago

mvidalgarcia commented 4 years ago

The script can be written in Python and executed in reana-server. It should create enough data to test our tasks. Some objects it can create (make sure to not double create them, i.e. create if not exists):

Resource:

ResourceUser:

diegodelemos commented 4 years ago

This could be implemented as new command in reana-db CLI e.g. reana-db quotas init. Then added as a new instruction in R-S's create-database.sh so this would work out of the box with reana-dev run-ci.