Skip to content

spike(zookeeper): hummingbird based image - #1757

Draft
razvan wants to merge 4 commits into
mainfrom
feat/humm-spike
Draft

razvan wants to merge 4 commits into
mainfrom
feat/humm-spike

Conversation

@razvan

@razvan razvan commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Apache ZooKeeper on Red Hat Hummingbird (spike)

Part of stackabletech/issues#921

This image builds Stackable's patched Apache ZooKeeper 3.9.6 on Red Hat Hummingbird, with no UBI9 stage anywhere in the build.
The final image is FROM scratch.
Its filesystem is assembled with dnf --installroot from the Hummingbird RPM repo.
It runs as UID 1000 (stackable) and starts with bin/zkServer.sh start-foreground.

It replaces the chain zookeeper -> java-base -> vector -> stackable-base -> ubi9-minimal with named stages in one file hummingbird-spike/zookeeper.Dockerfile.

Note

This is a spike for the amd64 version.

Runtime image

Component Version Source
Apache ZooKeeper (patched) 3.9.6 built from source with patchable
JRE Red Hat build of OpenJDK 17.0.21.1 Hummingbird repo, java-17-openjdk-portable tarball
libc glibc 2.43 Hummingbird OS
Kerberos client tools krb5 1.22.3 Hummingbird repo
OpenSSL libraries 3.5.9 Hummingbird repo
Vector (log sidecar) 0.58.0 built from source, links the system OpenSSL
inotify-tools 3.22.1.0-1.el9 EPEL 9 RPM from the Stackable package repo (not in the Hummingbird repo)
JMX exporter 1.4.0 agent jar
Patched logback 1.3.15 built from source
jvmkill 0e410d8 built from source
config-utils / containerdebug / cert-tools 0.5.1 / 0.5.0 / 0.1.1 built from source (Rust)

Differences from the UBI9 image

  • Hummingbird's Red Hat build of OpenJDK replaces Temurin.
  • Vector links the system OpenSSL instead of a vendored copy.
  • nano and iputils are left out because they are not in the Hummingbird repo.
  • The JRE comes from a tarball, so it is missing from the rpmdb.
    One line for it is added to package_manifest.txt by hand.
  • The spike lists 78 packages and the UBI image 143.
  • Only in UBI (86 names).
    • The graphics and font stack that Temurin's RPM pulls in: alsa-lib, fontconfig, freetype, harfbuzz, libX11*, dejavu-sans-fonts, glib2.
    • A larger crypto and GnuPG set: gnutls, gnupg2, gpgme.
    • The package-manager toolchain: microdnf, libdnf, librepo, rpm, libsolv.
    • nano, iputils, gzip, the openssl CLI, tzdata, tzdata-java.
  • Only in the spike (21). java (the portable JRE) and curl with its dependencies (libssh, libfido2, ngtcp2, libnghttp3, libpsl).
  • Renames. coreutils-single vs coreutils, curl-minimal vs curl, pam vs pam-libs, zlib vs zlib-ng-compat.
  • Key entries. The spike also lists the imported EPEL key gpg-pubkey-ff8ad13…, which does nothing at runtime.

The full curl brings more dependencies than UBI's curl-minimal. If curl is needed at all in the runtime, check whether Hummingbird offers a minimal variant.

One behaviour difference

gzip is missing in the spike. tar tzf fails with gzip: Cannot exec. Plain tar and kubectl cp still work, but anything that uses tar -z would break. The UBI image has gzip. Adding gzip to the rootfs package list is cheap.

Build

Run from the repository root, the build context must be the repo root:

docker build -f hummingbird-spike/zookeeper.Dockerfile -t oci.stackable.tech/sandbox/zookeeper:3.9.6-humm .

Useful intermediate targets: devel, java-devel, rust-binaries, vector-builder, zookeeper-builder, rootfs.

docker build -f hummingbird-spike/zookeeper.Dockerfile --target rootfs -t zk-hum-rootfs .

Security Audit

SecObserve scan of 3.9.6-humm image:
image

For comparison, this is the summary of the corresponding UBI9 based version:
image

@razvan

razvan commented Nov 24, 2026 •

Copy link
Copy Markdown
Member Author

✅ Testing

Built directly with docker (not boil):

❯ docker build -f hummingbird-spike/zookeeper.Dockerfile -t localhost/zookeeper-hum:spike .

The image name used here is different than the one in the description, but it's the same image.

Ran against the dev op versions.

❯ ./scripts/run-tests --skip-release --test-suite nightly
...
--- PASS: kuttl (166.65s)
    --- PASS: kuttl/harness (0.00s)
        --- PASS: kuttl/harness/cluster-operation_zookeeper-latest-3.9.6,localhost_zookeeper-hum_spike_openshift-false (48.95s)
        --- PASS: kuttl/harness/logging_zookeeper-3.9.6,localhost_zookeeper-hum_spike_openshift-false (57.79s)
        --- PASS: kuttl/harness/znode_zookeeper-latest-3.9.6,localhost_zookeeper-hum_spike_openshift-false (21.70s)
        --- PASS: kuttl/harness/delete-rolegroup_zookeeper-3.9.6,localhost_zookeeper-hum_spike_openshift-false (44.21s)
        --- PASS: kuttl/harness/smoke_zookeeper-3.9.6,localhost_zookeeper-hum_spike_use-server-tls-true_use-client-auth-tls-true_openshift-false (87.14s)
PASS

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.

1 participant