-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[AMQ-9305] Adapt the docker-related files to Java 17 #1048
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
[AMQ-9305] Adapt the docker-related files to Java 17 #1048
Conversation
|
ActiveMQ 5.18.x is guaranteed on Java 11. That's why it's temurin 11 by default. I would keep 11 for now and upgrade for 5.19.x. |
|
I'm getting confused, the branch that I'm targeting ( |
|
|
|
How about we introduce a Dockerfile for each "LTS", that can then have the JDK level set? The JDK revisions are going to continue to rapidly iterate, so having an approach to support multiple will keep things simple to manage. Dockerfile-5.18.x Thoughts? |
|
OK I better understand let me try to improve it a bit more |
|
IMHO, the best approach is to have a specific Dockerfile per branch and scope release-version option to only the major version of the branch. E.g. it means:
|
|
So your idea is to have a specific version of the folder assembly/src/docker in each LTS branch? |
|
Yup |
|
I added a commit to show how it could be managed with a new parameter to define the target java version. The idea is the following:
WDYT? |
|
Example of output: |
|
Thanks I gonna take a look. But I think we can do that in a easy way: as the Java version is specific to a branch, we can have specified in the dockerfile. |
|
Just note that even if the folder is duplicated in each branch, if in branch 5.19, I execute |
a8f9f82 to
51115f0
Compare
|
Ok, I reverted the proposal, let's wait for 5.19 |
|
Yeah, image names change too much. I don't think we can rely on a a simple '11', '17' parameter. Perhaps we should move the full container image name up to the parent pom right next to JDK version, so we can remember to update them at the same time. |
|
I propose to do the following change:
Easier to maintain and more logical IMHO. |
|
To summarize:
|
51115f0 to
d7e166d
Compare
Fixes https://issues.apache.org/jira/browse/AMQ-9305
Motivation
The Dockerfile and corresponding README need to be adapted to Java 17 in order to be able to launch a snapshot of ActiveMQ 5.19 inside a Docker container.
Modifications
eclipse-temurin:17-jreas new root image