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

Health check broken as image is missing curl #2675

Closed
vexdev opened this issue Nov 9, 2024 · 1 comment · Fixed by #2694
Closed

Health check broken as image is missing curl #2675

vexdev opened this issue Nov 9, 2024 · 1 comment · Fixed by #2694

Comments

@vexdev
Copy link

vexdev commented Nov 9, 2024

Describe the bug
The docker container reports as unhealthy

To Reproduce
Steps to reproduce the behavior:

  1. Setup docker compose with this image version: v3.81.0
  2. docker compose up -d
  3. docker ps
  4. notice how the health check fails

Expected behavior
Health check succeeds

Screenshots
Unnecessary

Versions and environment

  • Tolgee Platform version: 3.81.0
  • Environment: Docker version 24.0.6, build ed223bc, Host Debian 6.1.52-1 (2023-09-07) x86_64 GNU/Linux
  • Browser: Not UI

Additional context
Happens because https://github.com/tolgee/tolgee-platform/pull/2647/files introduced curl as health check while curl is not available on the image

@vexdev
Copy link
Author

vexdev commented Nov 9, 2024

Shall anyone encounter this issue, while waiting for a proper fix on the image you could just override the healthcheck in docker compose, like this:

    healthcheck:
      test: ["CMD", "wget", "-q", "-O", "-", "http://127.0.0.1:8080/actuator/health"]

(Not a workaround to keep)

StaNov pushed a commit to StaNov/tolgee-platform that referenced this issue Nov 13, 2024
We use `wget` because `curl` is not installed on the image.

Originally developed by @vexdev, thank you for that!

Closes tolgee#2675.
TolgeeMachine pushed a commit that referenced this issue Nov 15, 2024
## [3.81.4](v3.81.3...v3.81.4) (2024-11-15)

### Bug Fixes

* dashboard translations ([#2697](#2697)) ([88e8465](88e8465))
* Healthcheck of docker image ([#2694](#2694)) ([c21575f](c21575f)), closes [#2676](#2676) [#2675](#2675)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants