Skip to content

Commit fc7fc5d

Browse files
authored
fix(cron): Fix sentry-cleanup entrypoint issue (#861)
Fixes #860 and adds a test case to ensure all cleanup jobs are working.
1 parent 26f11c4 commit fc7fc5d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ services:
219219
context: ./cron
220220
args:
221221
BASE_IMAGE: "$SENTRY_IMAGE"
222+
entrypoint: "/entrypoint.sh"
222223
command: '"0 0 * * * gosu sentry sentry cleanup --days $SENTRY_EVENT_RETENTION_DAYS"'
223224
nginx:
224225
<<: *restart_policy

test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,7 @@ do
113113
echo "Pass."
114114
done
115115
echo "::endgroup::"
116+
117+
echo "::group::Ensure cleanup crons are working ..."
118+
docker-compose ps | grep -q -- "-cleanup_.\+[[:space:]]\+Up[[:space:]]\+"
119+
echo "::endgroup::"

0 commit comments

Comments
 (0)