Added BusyBox to Hasura builds#934
Conversation
The Hasura base image uses Ubuntu Jammy, and installing `curl` during emulated `linux/arm64` builds can trigger `libc-bin` post-installation failures under QEMU. This was causing image builds to fail after tagging a release.
There was a problem hiding this comment.
Pull request overview
This PR updates the Hasura container build and Compose healthchecks to avoid installing curl in the Hasura base image (Ubuntu Jammy), which can fail during emulated linux/arm64 builds under QEMU. It instead bundles a BusyBox binary into the Hasura image and uses BusyBox wget for the /healthz probe.
Changes:
- Added a BusyBox multi-stage build step and copied
/bin/busyboxinto the Hasura image for use by healthchecks. - Switched Compose healthcheck commands (local, production, and CLI) from
curlto BusyBoxwget. - Documented the change in the changelog for v7.2.2.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| production.yml | Updates Hasura service healthcheck to use BusyBox wget instead of curl. |
| local.yml | Updates local Hasura service healthcheck to use BusyBox wget. |
| gw-cli.yml | Updates CLI Compose Hasura image healthcheck to use BusyBox wget. |
| compose/production/hasura/Dockerfile | Removes apt-get install curl and copies BusyBox into the image for healthchecks. |
| compose/local/hasura/Dockerfile | Removes apt-get install curl and copies BusyBox into the image for healthchecks. |
| CHANGELOG.md | Adds release note for v7.2.2 describing the BusyBox healthcheck change and rationale. |
🤖 Augment PR SummarySummary: This PR updates the Hasura GraphQL container images to avoid installing extra packages during multi-arch builds. Changes:
Technical Notes: Health checks now run entirely from the bundled BusyBox binary, avoiding emulated package installs on Ubuntu Jammy. 🤖 Was this summary useful? React with 👍 or 👎 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #934 +/- ##
=======================================
Coverage 93.65% 93.65%
=======================================
Files 422 422
Lines 30725 30725
=======================================
Hits 28777 28777
Misses 1948 1948 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The Hasura base image uses Ubuntu Jammy, and installing
curlduring emulatedlinux/arm64builds can triggerlibc-binpost-installation failures under QEMU.