Skip to content

Add health-checker buildpack to stack? #57

@herder

Description

@herder

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 curl as health check
  • Setting the buildpacks param to java and health-checker, and using the thc binary 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions