Skip to content

Update Dockerfile to install curl #117

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

Merged
merged 1 commit into from
Feb 26, 2024

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