metacpan / metacpan-web

Web interface for MetaCPAN
http://metacpan.org
Other
418 stars 237 forks source link

Add docker healthcheck #3203

Closed haarg closed 1 month ago

haarg commented 1 month ago

Adds a healthcheck end point doing some rudimentary work that can be checked.

Adds health checks to the docker containers. These will be used by docker-compose. Kubernetes doesn't use the declared docker health checks, so it won't have any impact on production.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 73.08%. Comparing base (ffbab6c) to head (b7b7d10). Report is 5 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3203 +/- ## ========================================== + Coverage 72.95% 73.08% +0.12% ========================================== Files 69 69 Lines 2392 2396 +4 Branches 338 338 ========================================== + Hits 1745 1751 +6 + Misses 519 517 -2 Partials 128 128 ``` | [Files with missing lines](https://app.codecov.io/gh/metacpan/metacpan-web/pull/3203?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=metacpan) | Coverage Δ | | |---|---|---| | [lib/MetaCPAN/Web/Controller/Root.pm](https://app.codecov.io/gh/metacpan/metacpan-web/pull/3203?src=pr&el=tree&filepath=lib%2FMetaCPAN%2FWeb%2FController%2FRoot.pm&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=metacpan#diff-bGliL01ldGFDUEFOL1dlYi9Db250cm9sbGVyL1Jvb3QucG0=) | `75.47% <100.00%> (+2.00%)` | :arrow_up: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/metacpan/metacpan-web/pull/3203/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=metacpan)