-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add HEALTHCHECK to all Dockerfiles #12
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
base: main
Are you sure you want to change the base?
Changes from all commits
ee2ed9c
5abb149
28e7c35
8a5c6d2
08fbd81
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,9 @@ COPY --chown=1001:root target/*-runner /app/application | |
|
|
||
| EXPOSE 4566 | ||
|
|
||
| HEALTHCHECK --interval=5s --timeout=3s --retries=5 \ | ||
| CMD curl -f http://localhost:4566/_floci/health || exit 1 | ||
|
Comment on lines
+21
to
+22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 HEALTHCHECK uses The Prompt for agentsWas this helpful? React with 👍 or 👎 to provide feedback. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. False positive — |
||
|
|
||
| USER 1001 | ||
|
|
||
| CMD ["./application", "-Dquarkus.http.host=0.0.0.0"] | ||
| CMD ["./application", "-Dquarkus.http.host=0.0.0.0"] | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 HEALTHCHECK uses
bashwhich is not available inquarkus-micro-imagebase imageThe
quarkus-micro-image:2.0is based on UBI Micro, an extremely minimal image that does not includebash(only/bin/shat most, and no package manager to install it). The HEALTHCHECK commandbash -c 'echo -e "GET /_floci/health HTTP/1.0\r\n..." > /dev/tcp/localhost/4566'will fail becausebashis not found. Additionally, the/dev/tcppseudo-device is a bash-specific feature unavailable in other shells. The container will be permanently marked unhealthy by Docker, which can cause restart loops and block dependent services.Prompt for agents
Was this helpful? React with 👍 or 👎 to provide feedback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
False positive —
bashis present inquarkus-micro-image:2.0:And
/dev/tcpworks as expected (returns "Connection refused" when no server is running, confirming bash processes the pseudo-device):