-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create "db export" and "db import" commands #302
Comments
Do you only need read-access to the data from the baur database in in CI? |
I need read-only access to the data so forked builds can build efficiently without actually connecting to a real database. |
Would it help if there would be a cleanup command to remove database records older then X? |
It wont be the same since older records may still be relevant (for example an app that hasn't changed in a while). |
True, I think we would need both options. So a command like: baur maint cleandb [--max-runs-per-app COUNT] [--max-age TIMESTAMP] Would that help with your particular usecase? I currently do not see a need for the suggested import/export export command apart from your usecase, which is basically a workaround to not having to expose psql. |
Yeah that could work |
We have an open source project that uses baur (https://github.com/stackpulse/steps).
Our entire build system is based on baur.
Currently our CI is configured not to run forked builds. This is because we don't want to let everyone access our postgres database which contains baur data.
Ideally I want to build forked branches too, but I don't want to let users connect to my postgres db.
My idea to solve this is as follows:
However, I'm interested in the smallest db footprint possible. I don't care of older build digests, I only want to get the file digests from the most recent build without the historical data. This is where I would like to have baur db dump feature
You could run
baur db export all
for full dump (same as pg_dump for example) orbaur db export minimal
for only the latest build data + digest. This will be the minimal amount of data required to build only the modified applications.It can be CSV format or JSON or whatever, not necessary postgres dump.
What do you think?
The text was updated successfully, but these errors were encountered: