Skip to content

docker: add Cloudsmith Dockerfile template for Kaui 5.x - #358

Open
tungleduyxyz wants to merge 1 commit into
masterfrom
kaui-cloudsmith-docker
Open

tungleduyxyz wants to merge 1 commit into
masterfrom
kaui-cloudsmith-docker

Conversation

@tungleduyxyz

Copy link
Copy Markdown
Contributor

Summary

Kaui has no Docker release path any more: the release workflow is deprecated, and Kill Bill 0.25+ images moved to Cloudsmith. This adds the build piece for Kaui, mirroring docker/templates/killbill/cloudsmith/Dockerfile.template.

  • New docker/templates/kaui/cloudsmith/Dockerfile.template: self-contained multi-stage build (base, shell, final) on JDK 21 / Tomcat 11, with a pinned __VERSION__. No intermediate killbill/base or killbill/kaui:latest image is needed. Kaui comes from Maven Central, so no BuildKit secret is required.
  • docker_ci: builds the new template with KAUI_VERSION.
  • docker/README.adoc: documents how to build it.
  • .gitignore: ignores the two generated files (cloudsmith/Dockerfile, tagged/kpm.yml).

Kaui 4.x is not supported by this template. It uses javax.servlet and fails to deploy on Tomcat 11 (NoClassDefFoundError: javax/servlet/ServletContextListener). This is stated in the template header and the README.

Not included

The release workflow that pushes the image to Cloudsmith. Like the Kill Bill one, it needs the Cloudsmith secrets and would live in killbill-ee-profile; it can call this template. Follow-up.

Test plan

Built locally (arm64) with --target final and KILLBILL_CLOUD_REF=master, then ran against Kill Bill 0.24.22 and MariaDB:

  • Kaui 5.0.4: image builds, Kaui starts, login as admin returns 302 to /tenants, no errors in kaui.out
  • Kaui 4.0.36: image builds but Kaui does not deploy on Tomcat 11 (expected, documented)
  • docker_ci build of the new step on amd64 (runs in this PR)
  • Not tested against Kill Bill 0.25.x

Related: killbill/technical-support#346

🤖 Generated with Claude Code

Add docker/templates/kaui/cloudsmith/Dockerfile.template, the Kaui counterpart
of the Kill Bill cloudsmith template: a multi-stage build (base, shell, final)
on JDK 21 / Tomcat 11 that needs no intermediate killbill/base or
killbill/kaui:latest image. Kaui is downloaded from Maven Central, so no
BuildKit secret is required. Kaui 4.x is not supported (javax.servlet does not
deploy on Tomcat 11).

Also build it in docker_ci, document it in docker/README.adoc and ignore the
generated files.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@tungleduyxyz

Copy link
Copy Markdown
Contributor Author

Test results

Tested at d8ebdaa. Local builds were on arm64; CI covers amd64.

Check Result
CI All checks pass on both the push and pull_request runs, including the new "Build kaui image (self-contained cloudsmith template)" step (Kaui 5.0.2, amd64).
Kaui 5.0.4 image Builds. OpenJDK 21.0.13, Tomcat 11.0.29, kpm.yml pinned to 5.0.4, runs as tomcat.
Kill Bill 0.25.4 + MariaDB Kaui 5.0.4 starts, admin login returns 302 to /tenants (lands on /admin_tenants/new), 0 error-level log lines.
Kill Bill 0.24.22 + MariaDB Same result.
Kill Bill 0.25.4 + PostgreSQL Same result with KAUI_DB_ADAPTER=postgresql; Kaui queries ran against the kaui database.
Kaui 5.0.2 Builds and passes the same smoke test against 0.25.4.

Kill Bill 0.25.4 was built locally from docker/templates/killbill/cloudsmith/Dockerfile.template without a secret, so it resolves from Maven Central.

Not covered:

  • Kaui 4.x was not re-run on the final branch. It fails on Tomcat 11 as documented.
  • Pushing to Cloudsmith, which needs the secrets in killbill-ee-profile.

Note: the Kaui 5.0.4 WAR on Maven Central bundles engine gem kaui-4.0.29 (4.0.36 bundles kaui-4.0.30), so kaui-4.0.29 in the logs matches upstream's packaging.

🤖 Generated with Claude Code

@tungleduyxyz
tungleduyxyz marked this pull request as ready for review December 6, 2026 13:10
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