#Custom HealthIndicator for a liquibase migration?

3 messages · Page 1 of 1 (latest)

humble mirage
#

Hi,

Is it possible to add a custom HealthIndicator for when a particular liquibase migration has completed?

Problem: Currently my docker-compose file runs a bunch of services, and one of the profiles which combines all the services have a command which execute 3 scripts. One of these scripts tries to access a database table, but it doesn't exist before the backend service has completed its liquibase migration. In Docker, I already tried adding a "healtcheck" and "depends_on", but it currently only checks for the normal health of the application as returned by Spring Boots default health actuator.

I need to somehow extend it to check whether or not the liquibase database migration in the Java backend app has actually completed. How can I extend the health actuator to depend on this migration being done?

The app is written using Groovy/Grails, which I believe is build on top of Java/Spring Boot, so it must have access to the same.

snow otterBOT
#

This post has been reserved for your question.

Hey @humble mirage! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.