Skip to content

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

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

tungleduyxyz wants to merge 1 commit into
killbill:masterfrom
tungleduyxyz: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

Superseded by #358, which uses a branch in killbill/killbill-cloud instead of a fork.

@tungleduyxyz
tungleduyxyz deleted the kaui-cloudsmith-docker branch December 6, 2026 12:41
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