Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Container image with healthcheck #3741

Open
rriemann opened this issue Jan 3, 2025 · 0 comments
Open

Support Container image with healthcheck #3741

rriemann opened this issue Jan 3, 2025 · 0 comments

Comments

@rriemann
Copy link

rriemann commented Jan 3, 2025

Describe the solution you'd like

I would like to use the Container image build from https://github.com/element-hq/matrix-authentication-service/blob/main/Dockerfile in my compose/docker-compose file with a healthcheck.

For this, a program is required that can be executed in the container to issue an HTTP request. However, the current configuration with distroless delivers an image without any such program. So it is not possible.

Could wget be added or the mas-cli extended by code to fire an HTTP request to its own health API?

see also: GoogleContainerTools/distroless#1350

Describe alternatives you've considered
One way to do this is to add: healthcheck: test: ["CMD", "mas-cli", "config", "check"]

I prefer however to use the health HTTP API endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant