Skip to content

Commit

Permalink
fix(cron): Fix sentry-cleanup entrypoint issue (#861)
Browse files Browse the repository at this point in the history
Fixes #860 and adds a test case to ensure all cleanup jobs are working.
  • Loading branch information
BYK authored Feb 15, 2021
1 parent 26f11c4 commit fc7fc5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ services:
context: ./cron
args:
BASE_IMAGE: "$SENTRY_IMAGE"
entrypoint: "/entrypoint.sh"
command: '"0 0 * * * gosu sentry sentry cleanup --days $SENTRY_EVENT_RETENTION_DAYS"'
nginx:
<<: *restart_policy
Expand Down
4 changes: 4 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,7 @@ do
echo "Pass."
done
echo "::endgroup::"

echo "::group::Ensure cleanup crons are working ..."
docker-compose ps | grep -q -- "-cleanup_.\+[[:space:]]\+Up[[:space:]]\+"
echo "::endgroup::"

0 comments on commit fc7fc5d

Please sign in to comment.