Commit 9af32fdf authored by Thomas Downes's avatar Thomas Downes

Add cleanup script to be run as crontab/k8s cronjob

parent ad55742f
Pipeline #51100 passed with stage
in 3 minutes and 1 second
......@@ -37,6 +37,7 @@ RUN apt-get update && \
npm install -g bower
COPY docker/entrypoint /usr/local/bin/entrypoint
COPY docker/cleanup /usr/local/bin/cleanup
COPY docker/supervisord.conf /etc/supervisor/supervisord.conf
COPY docker/supervisord-apache2.conf /etc/supervisor/conf.d/apache2.conf
COPY docker/supervisord-lvalert-overseer.conf /etc/supervisor/conf.d/overseer.conf
......
#!/bin/sh
python /app/gracedb_project/manage.py update_user_accounts_from_ligo_ldap
python /app/gracedb_project/manage.py remove_inactive_alerts
python /app/gracedb_project/manage.py clearsessions
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment