kamal: curl removed from healthcheck -- breaking all new deploys

reverting to version 0.12.0 does not fix reverting to version 0.11.0 fixes it

Seems like healthcheck uses curl and removing it from the container doing the healthcheck is breaking things.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 15 (2 by maintainers)

Commits related to this issue

Most upvoted comments

Can you confirm curl installed in your container? Seems like you still didn’t install.

mrsk app exec 'curl --version'

@34code, @giedriusr - since version 0.12.0, mrsk uses docker healthchecks to wait for the container to become healthy.

The check to run is passed via the –health-cmd option to docker run.

This allows Traefik to monitor the status of the container and wait for it to report that it is healthy.

The effect of all of this is that the healthcheck command is now run by docker inside the container and not by mrsk from the host VM. The default healthcheck command uses curl to check if the app is up.

So you should either:

  1. Install curl in your container
  2. Or specify a custom healthcheck command via the config (see example here)

The error is curl not found and results in healthcheck failing