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

Document health check buildpack usage on Paketo web site #125

Open
dmikusa opened this issue Apr 25, 2024 · 2 comments
Open

Document health check buildpack usage on Paketo web site #125

dmikusa opened this issue Apr 25, 2024 · 2 comments
Labels
type:enhancement A general enhancement

Comments

@dmikusa
Copy link
Contributor

dmikusa commented Apr 25, 2024

Describe the Enhancement

There is no documentation on paketo.io/docs for using the Health Checker buildpack. Add documentation for usage with pack, Spring Boot build tools, docker run and Docker Compose.

Motivation

It helps to know how to use the buildpack 😀

@dmikusa dmikusa added the type:enhancement A general enhancement label Apr 25, 2024
@detomarco
Copy link

any update on this?

I'm trying to use healtcheck in a spring boot app but I didn't find any official resource that describe how to do it.

This is my gradle configuration

buildpacks = listOf(
    "gcr.io/paketo-buildpacks/java:latest",
    "gcr.io/paketo-buildpacks/health-checker:latest",
)
environment = mapOf(
    "BP_HEALTH_CHECKER_ENABLED" to "true"
)

Docker compose

healthcheck:
    test: [ "CMD", "/cnb/process/health-check" ]
    interval: 3s
    retries: 10
    start_period: 10s
    timeout: 180s

but then I get this error in the healtcheck logs of my container

{
   "Start": "2024-10-25T19:50:37.999496253Z",
   "End": "2024-10-25T19:50:38.06885967Z",
   "ExitCode": -1,
   "Output": "OCI runtime exec failed: exec failed: unable to start container process: exec: \"/cnb/process/health-check\": stat /cnb/process/health-check: no such file or directory: unknown"
},

There is really no documentation on how to do it properly

@dmikusa
Copy link
Contributor Author

dmikusa commented Oct 28, 2024

There are instructions https://stackoverflow.com/a/75899112/1585136, but I do still want to add this to the Paketo documentation. I apologize, but haven't gotten time to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants