bcardiff / docker-rclone

Docker image to use rclone to run cron sync with monitoring
https://hub.docker.com/r/bcardiff/rclone
MIT License
78 stars 60 forks source link

Healthcheck inclusion #14

Open ThomDietrich opened 3 years ago

ThomDietrich commented 3 years ago

Hello all,

(reference: https://docs.docker.com/engine/reference/builder/#healthcheck)

I wanted to raise a discussion to define a healthcheck for this image, either in the image itself or as a post-defined instruction for run / docker-compose.

Side not on the existing healthcheck.io integration: Imho these two can be implemented in parallel.

Which command do you think is best suited to check the health of the image? It would be easy to check that cron is running but a better health indicator would check the success of actual cron jobs.

Any suggestions? What works for you? Are you interested to implement something in the code of this image?

Best!