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

Docker healthckeck mechanism #1514

Open
midgethoen opened this issue Jun 4, 2024 · 0 comments
Open

Docker healthckeck mechanism #1514

midgethoen opened this issue Jun 4, 2024 · 0 comments

Comments

@midgethoen
Copy link

I ran into an issue where my container healthcheck is no longer working because curl is not on the image.

  # docker-compose.yml
  ...
  smtpstub:
    image: rnwood/smtp4dev:3.1.1
    healthcheck:
      test: ['CMD', 'curl', '-f', 'http://localhost:80']
  ...

curl may have gone for a while, but i must have only now noticed after pulling a newer version.

i need the healthcheck to make sure smtp4dev is running before running any tests.

my current workaround is to simply to pin an older version, but that is not a real solution.

I'm not very familiar with dotnet, so maybe im overlooking on obvious solution.

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