-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Describe the Enhancement
The image produced by this pack is very trimmed down and lean, which is great for reducing the attack surface and risk of CVE:s.
However, there is no way to support internal health checks like docker health checks or the k8s equivalent where a command is spawned in the pod without either:
- Using the full builder and utilizing
curlas health check - Setting the
buildpacksparam tojavaandhealth-checker, and using thethcbinary to do the health check.
Both of these options work, but the first option makes the image a lot larger and adds a lot of packages that should not be needed for a Java app.
And the second option requires some manual selection of contributing buildpacks, which is certainly possible but makes it harder to create a streamlined app pipeline.
Possible Solution
Add the health-checker buildpack to this pack.
Motivation
Adding this pack would allow defining Docker healthchecks on platforms that use it (ECS, for example), while causing no impact on platforms that don't need it.
Since the buildpack only contributes if the BP_HEALTH_CHECKER_ENABLED environment variable is set, it would be an opt-in and not activated by default.