Skip to content

Commit

Permalink
cron: add cleanup script
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed May 13, 2024
1 parent cf0070a commit 83fa931
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions scripts/cron-cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# Cleanup cron job run inside master container
set +e

# Remove unused docker images
docker image prune -a -f
3 changes: 2 additions & 1 deletion scripts/crontab-master
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Cron jobs for master container

*/5 * * * * /bin/bash /testbed/scripts/cron-master.sh
*/8 * * * * /bin/bash /testbed/scripts/cron-status.sh
*/8 * * * * /bin/bash /testbed/scripts/cron-status.sh
10 1 * * * /bin/bash /testbed/scripts/cron-cleanup.sh

0 comments on commit 83fa931

Please sign in to comment.