Repository navigation
Conversation
5 of 9 tasks
Member
Author
✅ TestingBuilt directly with ❯ 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 |
6 of 11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 --installrootfrom the Hummingbird RPM repo.It runs as UID 1000 (
stackable) and starts withbin/zkServer.sh start-foreground.It replaces the chain
zookeeper -> java-base -> vector -> stackable-base -> ubi9-minimalwith named stages in one filehummingbird-spike/zookeeper.Dockerfile.Note
This is a spike for the amd64 version.
Runtime image
patchablejava-17-openjdk-portabletarballDifferences from the UBI9 image
nanoandiputilsare left out because they are not in the Hummingbird repo.One line for it is added to
package_manifest.txtby hand.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:

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