Adds health checks to web and data_handler container; restarting on failure #24

Open
ViMaSter wants to merge 5 commits from healthcheck into main
Collaborator

Increases the resilience of most containers a bit:
fd6b1d680c: web health check verifies the camera endpoint returns at least one position when zoomed all the way out (shows most of Europe and parts of Asia)
58f048adba: Adding a health check to data_handler required more verbose output; before this PR, all logs generated by dcrond and its jobs were silenced; they're now stored in /var/log
f94080f45f: Previously, update_camera.sh was only started every hour at xx:05; now it's also run immediately after the container starts
73e9c279df: Adds a health check to data_handler, which remains healthy unless the newest update_camera_ log file contains the word error
82b41342fc: Restarts any container if the associated health check fails (shutdowns by users still allowed)

Increases the resilience of most containers a bit: fd6b1d680c: `web` health check verifies the camera endpoint returns at least one position when zoomed all the way out (shows most of Europe and parts of Asia) 58f048adba: Adding a health check to `data_handler` required more verbose output; before this PR, all logs generated by `dcrond` and its jobs were silenced; they're now stored in `/var/log` f94080f45f: Previously, `update_camera.sh` was only started every hour at `xx:05`; now it's also run immediately after the container starts 73e9c279df: Adds a health check to `data_handler`, which remains `healthy` unless the newest `update_camera_` log file contains the word `error` 82b41342fc: Restarts any container if the associated health check fails (shutdowns by users still allowed)
Some checks failed
images.yml / fix: Restarts any container unless stopped by user (pull_request) Has been cancelled
images.yml / fix: Restarts any container unless stopped by user (push) Has been cancelled
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin healthcheck:healthcheck
git switch healthcheck
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
CCCHH/sunders!24
No description provided.