Skip to content

Use ruby instead of curl to check web service health#151

Open
ukberry wants to merge 2 commits intoopf:stable/17from
ukberry:ruby-web-healthcheck-for-slim-images
Open

Use ruby instead of curl to check web service health#151
ukberry wants to merge 2 commits intoopf:stable/17from
ukberry:ruby-web-healthcheck-for-slim-images

Conversation

@ukberry
Copy link

@ukberry ukberry commented Mar 12, 2026

Hello, I have created this pull request in an effort to help others that experienced a problem with the health checker when using the slim images. The slim docker images do not contain curl causing the healthcheck to fail and the container to be continually restarted by autoheal.

Ticket

Healthcheck for web container fails! #150

What are you trying to accomplish?

To enable autoheal to correctly identify a healthy container when using the slim docker images.

What approach did you choose and why?

The openproject code base is written in ruby meaning that the slim docker container is guaranteed to have ruby installed. A one-liner ruby script is how I solved this on my local install.

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

ukberry added 2 commits March 12, 2026 13:41
The slim docker images do not contain curl causing the healthcheck to fail and the container to be restarted by autoheal.
The OPENPROJECT_RAILS__RELATIVE__URL__ROOT environment variable was
added to the healthcheck command to support relative URLs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant