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

Add HEALTHCHECK to Linux Docker image. #128

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update HEALTHCHECK to interpolate RYUK_PORT, default to 8080.
emetsger committed May 18, 2024

Verified

This commit was created on github.com and signed with GitHub’s verified signature.
commit e58440e657cda1d66c2635f8a223f51e5448b6b3
2 changes: 1 addition & 1 deletion linux/Dockerfile
Original file line number Diff line number Diff line change
@@ -27,4 +27,4 @@ RUN apk --no-cache add ca-certificates
COPY --from=build /bin/ryuk /bin/ryuk
CMD ["/bin/ryuk"]
LABEL org.testcontainers.ryuk=true
HEALTHCHECK --start-period=5s --interval=2s --timeout=2s --retries=10 CMD netstat -ltn | grep -q ":8080"
HEALTHCHECK --start-period=5s --interval=2s --timeout=2s --retries=10 CMD [ "/bin/ash", "-c", "netstat -ltn | grep -q \":${RYUK_PORT:-8080}\""]