Skip to content

Conversation

@netroms
Copy link
Collaborator

@netroms netroms commented Jan 28, 2026

This PR is adding three features:

  • To support slim embedded DHIS2 images, currently only PR images, but will soon be all 2.42+ images. Add lightweight static healthcheck binaries that work in minimal/distroless images that lack curl, wget, or bash.
  • To support ARM based servers and laptops.
  • Support DHIS2 2.43 images, which uses much more temp storage for temporary app zip file unpacking during first start.

Changes include:

  • Add healthcheck-amd64 and healthcheck-arm64 binaries
  • Auto-detect CPU architecture in generate-env.sh
  • Change POSTGRES_VERSION to POSTGRES_IMAGE for flexibility
  • Add baosystems/postgis option for ARM compatibility
  • Install curl in update-admin-password.sh for minimal images
  • Increase tmpfs size to 300MB for to accommodate for unpacking of DHIS2 apps, since 2.43

Add lightweight static healthcheck binaries that work in minimal/distroless
images that lack curl, wget, or bash. Changes include:

- Add healthcheck-amd64 and healthcheck-arm64 binaries
- Auto-detect CPU architecture in generate-env.sh
- Change POSTGRES_VERSION to POSTGRES_IMAGE for flexibility
- Add baosystems/postgis option for ARM compatibility
- Install curl in update-admin-password.sh for minimal images
- Change healthcheck endpoint to /api/ping
- Increase tmpfs size to 300MB for better performance

Signed-off-by: Morten Svanaes <msvanaes@dhis2.org>
Instead of storing binary files in the repository, download the
healthcheck binary at container startup using healthcheck-init service.
This follows the same pattern as glowroot-init and otel-init.

Changes:
- Add healthcheck-init service to download binary with SHA256 verification
- Mount healthcheck volume into app container
- Update tools/README.md to document the new approach

Source: https://github.com/netroms/simple_healthcheck v1.0.0
Signed-off-by: Morten Svanaes <msvanaes@dhis2.org>
Removed log4j2.xml volume mapping from DHIS2 service.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants