-
Notifications
You must be signed in to change notification settings - Fork 31
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
Health Check for docker-compose best practice? #63
Comments
We do have a health check endpoint that you can reach at |
The issue I'm hitting is that you need curl, or some other command line tool to hit that health endpoint via docker-composes provided health check API. And the 1password connect containers are so heavily optimized that they do not have curl, or even a shell available to execute the health check. Therefore I can't curl
If there was a simple example of running the health check against 1password connect within docker-compose that would be super helpful! |
The Docker (compose) healthchecks can only be constructed using a binary that is part of the container, e.g. curl or some other executable, with or without a parent shell, see the docker compose The connect-api container lacks a binary that can be used for this; these are the only binaries in the 1.7.2 image:
The connect-sync 1.7.2 container is the same story:
The I understand and really appreciate the security consious nature of the sparse docker container, but can 1Password please include a binary that makes health checks possible? It could even be a dedicated stripped-down executable that can only access the healthpoint on |
Hi, I wanted to add a health check for connect-api but there's no
sh
orbash
on the image:And docker health checks largely rely on running a command, primarily curl.
I was just going to extend the base image to have net-tools but wanted to check if I was missing something obvious first.
I realise this is a docs repo, but didn't know where else to ask. Either way it would be good to document how to have a good local development workflow with 1password connect. I strung something workable together but little things like this make me wonder if work has already been done that I'm not aware of.
The text was updated successfully, but these errors were encountered: