From 6cc93e21b85f892cbd22f606d98dec367fd1972a Mon Sep 17 00:00:00 2001 From: Burak Yigit Kaya Date: Mon, 15 Feb 2021 18:19:05 +0300 Subject: [PATCH] fix(cron): Fix sentry-cleanup entrypoint issue Fixes #860 and adds a test case to ensure all cleanup jobs are working. --- docker-compose.yml | 1 + test.sh | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 4a2644c9042..d9d28c42598 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/test.sh b/test.sh index b4028dc5188..4c6ca2fead7 100755 --- a/test.sh +++ b/test.sh @@ -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::"