Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add indefinite wait with readiness check to ensure postgres running #44

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions plugins/debezium-server/config/process-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ processes:
depends_on:
postgres_invariant_checks:
condition: process_completed_successfully
postgres_wait:
condition: process_healthy

postgres_wait:
command: "echo 'Waiting on postgresql...'; tail -f /dev/null"
readiness_probe:
period_seconds: 5
failure_threshold: 1000
exec:
command: pg_isready -U postgres

postgres_invariant_checks:
command: devbox run postgres-version-check
Expand Down
Loading