10. Build, package, and test for amd64 and arm64
Date: 2026-10-20
Status
Section titled “Status”Accepted. The Postgres image decision is replaced by ADR 13.
Context
Section titled “Context”The six TAK images were built for linux/amd64 only, and the Zarf package, the test bundle, and the CI deploy all ran on amd64. Arm64 hosts are common for both development (Apple silicon laptops running k3d) and deployment (Graviton and other arm64 cloud nodes). UDS Core publishes core-base and the k3d-core-slim-dev checkpoint for both architectures, so the platform this package sits on already supports arm64.
Zarf packages are per architecture. A package carries one image per reference, pulled for the package’s architecture, so an arm64 package needs every image it lists to have an arm64 variant.
The images and their bases:
- The builder (Temurin 17 on Ubuntu 22.04) and the runtime base (UBI9 OpenJDK 17) are manifest lists that include arm64.
- TAK’s Gradle build already pulls the
linux-aarch_64Netty epoll, tcnative, and QUIC natives, and the Node and protoc downloads have arm64 builds. - NATS and its config reloader are multi-arch.
docker.io/postgis/postgis:15-3.4, the image the upstream chart names, is amd64 only.
Building arm64 under QEMU on an amd64 runner emulates the whole Gradle and Node compile, which is many times slower than a native build. GitHub provides native ubuntu-24.04-arm runners for public repositories.
Decision
Section titled “Decision”- The container workflow builds each architecture on a native runner (
ubuntu-24.04andubuntu-24.04-arm) and pushes<tag>-amd64and<tag>-arm64. A final job joins them withdocker buildx imagetools createinto one index under<tag>, the tagzarf.yamland the values reference. The merge refuses to write<tag>unless every architecture’s tag exists, so it cannot replace a multi-arch index with fewer platforms. wait-for-tak-images.shtreats a tag as published only when its index listslinux/amd64andlinux/arm64.- Postgres uses
docker.io/imresamu/postgis:15-3.4, the multi-arch build of the samepostgis/docker-postgisDockerfiles published by one of that project’s maintainers. It has the same PostgreSQL 15.8 and PostGIS 3.4.3 as the amd64-only image, on Debian bookworm instead of bullseye. - The package workflow creates the package on both architectures. The install test (k3d, slim UDS Core, the test bundle, SSO, and the full smoke and Playwright suite) runs on both. The release workflow publishes one package per architecture, each created on its own native runner.
Consequences
Section titled “Consequences”- One image tag and one package reference work on either architecture.
zarf package deployanduds deploypick the package for the cluster, or take--architecture. - Every image change costs two native builds instead of one. They run in parallel.
- The Postgres image comes from a maintainer’s namespace rather than the
postgisorganization. Switch back ifpostgis/postgisstarts publishing arm64. - The upgrade test ran on amd64 only until a released arm64 package existed. Every release from 0.6.0 on publishes both, so the upgrade jobs run on amd64 and arm64.
- Any image added to
zarf.yamlmust have an arm64 variant, or the arm64 package create fails. That failure is intended.
Measurement note: ten-client workload
Section titled “Measurement note: ten-client workload”Date: 2026-11-07.
Run 42361079121’s retained evidence contains baseline, Postgres buffers and Postgres WAL observations on both architectures at the same source revision, 10 clients and 60-second duration. The corrected report shares axes across architectures and keeps the source records and collection caveats inspectable. Both source jobs failed the baseline cold-age check because CloudTAK had restarted; the uploaded load records do not turn that into a successful cold-install measurement.
This light-load, single-observation sweep does not justify a performance-based architecture default. The Postgres-config points have nearly identical throughput across architectures, latency varies, and there was no checkpoint pressure in the measurement window. No messaging per-container headroom or class-loading profile was recorded.
Keep native development on the host’s architecture, native CI on both architectures, and deployment on the target platform with a representative capacity test. Both architectures remain supported. No Postgres defaults, JVM flags or probe settings change from this evidence. Issues 48, 49 and 51 remain open for the heavier load and controlled startup comparisons.