paketo buildpacks health-checker #355
Replies: 1 comment 3 replies
-
|
Normally, you'd use Since you're not using those tools, that's on you to set up. Essentially what those tools are doing is to a.) download that buildpack image, b.) extract the files and c.) put them into a new builder image at the location you mentioned https://github.com/buildpacks/spec/blob/main/platform.md#ordertoml-toml Then you can run your build and the lifecycle should know about your buildpack. The other option you can do is to make your own builder. You're using https://github.com/paketo-buildpacks/builder-jammy-base, so you can checkout those files. Modify the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
Sorry if this isn't the proper column for such a question.
I've been using
paketobuildpacks/builder-jammy-baseas a base image to create spring-boot application images through gitlab-ci by using thecreatecommand from /cnb/lifecycle/ with quite the success. Now there is a need to add healthcheck mechanism to these images so that, when the image starts running inside a container, it would check the availability of the application through an already exposed url.The problem is that the image that is created does not include the
curlcommand or something similar in order to check the availability.I found out that paketo has its own healthcheck buildpack that helps resolve exactly that problem. The question is: How can I include it in the paketobuildpacks/builder-jammy-base image in order to use it during the images creation. As I understand, it needs to be included inside the
/cnb/buildpacks/folder and then somehow be detected during the lifecycle. Is there a go-to way to achieve something like that? If not, is there any workaround?Thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions