Skip to content
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

Cronjob to wipe instance on a daily basis #2

Open
lnielsen opened this issue Mar 16, 2020 · 1 comment
Open

Cronjob to wipe instance on a daily basis #2

lnielsen opened this issue Mar 16, 2020 · 1 comment

Comments

@lnielsen
Copy link
Member

No description provided.

@ppanero
Copy link
Member

ppanero commented Mar 25, 2020

For this we would need to run:

invenio db drop --yes-i-know
invenio index destroy --yes-i-know
invenio db create
invenio index init
invenio files location create...

As it is now, this "could" be achieved with invenio-cli services --force. Tho we would need to add it to the docker image of the instance (install it along). It would require a PR since at the moment invenio-cli does db init and db destroy which act upon the db not the tables in it. It is an issue because we would need to give access on all public schema in the pg_conf... I'd try to avoid those privileges.

Alternatively, we can just create a script folder just on the demo instance for our own "management" purposes, or even just call the commands with && in the job. I would prefer the above (invenio-cli). It is more work, but doing scripts deceive the purpose of the CLI...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants