-
-
Notifications
You must be signed in to change notification settings - Fork 94
Bump Tomcat to 11.0.x and base Docker image to JDK 21 #344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
009003c
upgrade ubuntu packages
reshmabidikar 1e58c19
Merge pull request #334 from killbill/ubuntu-package-upgrade
reshmabidikar 511dd8a
register kb_beta_release.yml to master branch so it is available to e…
xsalefter 86814f4
Upgraded Ubuntu to 24.04 LTS.
vnandwana 17639fa
Rolled back the old release note
vnandwana cc8e0cc
make sure setenv.sh file refreshed
xsalefter 16d4e58
Merge pull request #339 from killbill/refresh-setenv
sbrossie 6d7ebd7
Merge branch 'killbill:master' into master
vnandwana 209b843
Merge pull request #338 from vnandwana/master
reshmabidikar 18e950d
Merge pull request #342 from killbill/ubuntu-upgrade-vijay
reshmabidikar b2a4223
Bump Tomcat to 11.0.x and base Docker image to JDK 21
tungleduyxyz fc77a49
Fix CI failure: drop --with-ssl=yes (incompatible with Tomcat Native …
tungleduyxyz 77afdaa
Update java version to 21
tungleduyxyz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| name: kb_beta_release | ||
|
|
||
| # Publishes a single, explicitly-pinned killbill/killbill:<version> docker image for beta / release-candidate versions | ||
| # (e.g. 0.25.1), without touching KAUI and `latest` tag (hence named "beta" release: it only ever publishes an | ||
| # explicit, pinned version tag and never promotes/updates `latest`). | ||
| # | ||
| # Unlike release.yml, this workflow does not reuse the already-published killbill/base:latest or | ||
| # killbill/killbill:latest images as parents, and it does not publish any intermediate killbill/base:beta-* image to | ||
| # Docker Hub either. Instead, it uses a single dedicated, self-contained multi-stage Dockerfile | ||
| # (docker/templates/killbill/beta/Dockerfile.template, stages: base -> shell -> final) so that: | ||
| # - branch-local changes (e.g. a Tomcat/JDK bump on a branch such as java2x) are actually baked into the resulting | ||
| # image, instead of silently falling back to whatever is currently published under :latest on Docker Hub, and | ||
| # - no intermediate image is ever published publicly - only the final killbill/killbill:<version> tag is pushed. | ||
| # | ||
| # Ansible/ansible-galaxy note: the base stage still installs Tomcat/Java/KPM via this repo's own ansible roles | ||
| # (same as release.yml), to keep user/group/permissions/ACL setup identical to a normal release image rather than | ||
| # hand-rolling it differently here. | ||
| # | ||
| # IMPORTANT - killbill-cloud git ref used for the ansible roles: the base stage fetches the ansible roles fresh from | ||
| # GitHub via `ansible-galaxy install git+...,<ref>` - it does NOT use this workflow run's own checkout for that. Rather | ||
| # than a separate input, this workflow uses ${{ github.ref_name }}, i.e. whatever branch you pick in the | ||
| # "Use workflow from" selector above. | ||
| # | ||
| # Concretely: if you pick "java2x" there, make sure your ansible/Dockerfile changes on java2x are already committed | ||
| # AND pushed to origin/java2x before running this. Uncommitted or unpushed local changes will NOT be picked up, since | ||
| # the clone happens fresh from GitHub. | ||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| killbill_version: | ||
| description: 'Kill Bill version to release (must already be published to Maven Central, e.g. 0.25.1)' | ||
| required: true | ||
| nexus_repository: | ||
| description: 'Nexus repository for KPM' | ||
| required: true | ||
| default: 'maven2' | ||
|
|
||
| jobs: | ||
| docker: | ||
| name: Publish killbill/killbill beta/RC image | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v7 | ||
| - name: Set up QEMU | ||
| uses: docker/setup-qemu-action@v4 | ||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v4 | ||
| - name: Login to Docker Hub | ||
| uses: docker/login-action@v4 | ||
| with: | ||
| username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
|
||
| # Bake the pinned Kill Bill version into the Dockerfile (same __VERSION__ substitution dockerTemplate.sh does for | ||
| # docker/templates/killbill/tagged/Dockerfile.template), then build+push the final stage only. | ||
| # The `base` and `shell` (See "stage" in the template) intermediate stages are never pushed. They exist purely | ||
| # inside this one buildx invocation's build graph. | ||
| - name: Build and push killbill beta/RC image | ||
| run: | | ||
| cd docker/templates/killbill | ||
| sed -e "s/__VERSION__/${{ github.event.inputs.killbill_version }}/" beta/Dockerfile.template > beta/Dockerfile | ||
| sed -e "s/__VERSION__/${{ github.event.inputs.killbill_version }}/" tagged/kpm.yml.template > tagged/kpm.yml | ||
| docker buildx build --push --platform=linux/arm64,linux/amd64 --no-cache \ | ||
| --target final \ | ||
| -t killbill/killbill:${{ github.event.inputs.killbill_version }} \ | ||
| -f beta/Dockerfile \ | ||
| --build-arg KILLBILL_CLOUD_REF=${{ github.ref_name }} \ | ||
| --build-arg NEXUS_REPOSITORY=${{ github.event.inputs.nexus_repository }} \ | ||
| . |
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.