Repository navigation
XDOCKER-432: Use the maximum officially supported version of Java in the Docker image - #114
Merged
Merged
Conversation
…the Docker image * Add an 'updateJava' task moving each cycle's base image to the highest Java version its XWiki version officially supports (the 'xwiki.java.version.support' property of its xwiki-commons POM), only once a Tomcat image exists for it * Chain it in the 'release' umbrella so that a Java change is smoke tested like the other version updates * Add an 'httpExists' helper (and an optional 404 handler to 'httpGet') to check that the Tomcat image tag exists on Docker Hub * Move the 17, 18.4 and 18 cycles to Java 25 (16 stays on Java 21, its maximum) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Jira URL
https://jira.xwiki.org/browse/XDOCKER-432
Changes
Description
updateJavatask: for each cycle, readsxwiki.java.version.supportfrom the cycle'sxwiki-commonsPOM and movestomcatImageTag.javaVersionto it, only if thetomcat:<tomcatVersion>-jre<java>tag exists on Docker Hub (and never backwards).updateJavais chained in thereleaseumbrella (afterupdateXWiki/updateJDBC), and the cycles it changes are smoke tested.httpExistshelper, backed by an optional 404 handler inhttpGet.tomcat:10-jre21totomcat:10-jre25; 16 stays ontomcat:9-jre21(21 is the maximum supported by 16.10.x).Clarifications
xwiki-commonsPOMs under its releases repository.Screenshots & Video
N/A
Executed Tests
./gradlew updateJava generate generateWorkflows: produced the expectedversions.jsonand Dockerfile changes../gradlew updateJavarun: every cycle reported as already up to date.tomcatVersion8: the task kept Java 21 and reported thattomcat:8-jre25does not exist.Expected merging strategy
🤖 Generated with Claude Code