Skip to content

Conversation

jpbalarini
Copy link
Contributor

@jpbalarini jpbalarini commented Jan 4, 2024

What does this PR do?

The base image doesn't have curl or wget installed, so we cannot do health checks when this is deployed as a service (for example, in AWS ECS, which is my use case).
I propose installing curl to be able to make container health checks like: curl -f http://localhost:8080/health || exit 1.

Thanks!

Who can review?

@OlivierDehaene

Install curl so we are able to make health checks
@jpbalarini jpbalarini changed the title Update Dockerfile Update Dockerfile to install curl Jan 4, 2024
@karmi
Copy link

karmi commented Feb 24, 2024

I've just ran into this issue myself, wondering why all containers are unhealthy despite running and serving... My code for healthcheck is:

healthcheck:
    test: curl --max-time 120 --retry 120 --retry-delay 1 --show-error --silent http://localhost/health

Can you please add curl, so it's possible to do a true healthcheck?

@OlivierDehaene OlivierDehaene merged commit bd7f8eb into huggingface:main Feb 26, 2024
@WissamAntoun WissamAntoun mentioned this pull request Aug 8, 2024
4 tasks
MasakiMu319 pushed a commit to MasakiMu319/text-embeddings-inference that referenced this pull request Nov 27, 2024
aagnone3 pushed a commit to StratisLLC/hf-text-embeddings-inference that referenced this pull request Dec 11, 2024
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

Successfully merging this pull request may close these issues.

3 participants