Add HEALTHCHECK instruction to Dockerfile #1546
Labels
No labels
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
Wont fix
old/ci/cd
old/rust
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity#1546
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For readiness monitoring; see https://matrix.to/#/!ksTlboXVgcyWjv5GrlEeKyQuJ8ZCprnwQx2b6-BQ44Q/%244PvqwxuCcNPYTota6PiTHO8ORSq2V5iWS6WUD39fNEY?via=wolfgirl.pet&via=gingershaped.computer&via=continuwuity.org and below
I was just reminded why this is more challenging than first expected: The docker image contains no way of running a web request, therefore something simple like curl won't work. We'd have to add a way to perform web requests, possibly a static busybox?
Can maybe see if pulling in a curl from the host image works, seeing as we already bring in glibc? Alternatively adding a basic http request command in the main binary is what I've done in another project 🥴
That is so utterly cursed.
Pulling in curl from the host image could work, however then we'd have to pull in all its deps and stuff as well since its dynamically linked. Would be a lot more complicated than a static busybox
Sounds like not a bad idea, although it would mean pulling in yet more images at build time. Up to whoever does it though
A subcommand to the continuwuity would solve this issue.
ie
/sbin/continuwuity healthcheck
This can load the env vars and do the request to the healthz endpoint, exiting with 0 on success and 1 on failure.