-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Ansible request for /usr/lib/jvm/jdkXX symlink #2912
Comments
+1 from me |
Thanks for the heads up. +1 from me. |
@Haroon-Khel I was just thinking about this after our call earlier. I think for now we should retaing both the jdk-XX and jdkXX links. While adding the jdkXX one shouldn't cause a problem for now in cases where the machine will retain the old one, as soon as we put in a PR for the update the platforms using build docker images will all be regenerated with ONLY the new one, and I'd prefer us to be able to do a bit more testing on that before making it live. For example, this line: looks specifically for the location with the |
At the moment I am testing builds with and without the hyphen in the symlink in our build containers. The scripts run fine with and without the hyphen (it detects the correct bootjdk) as long as the appropriate edit is made in linux.sh Therefore this infra pr needs to be coupled with a build pr which makes the appropriate changes in linux.sh and mac scripts |
That's true, but the important thing for us to verify to ensure this change is useful is to ensure that if you're not using those scripts then running |
Running bash configure on the centos7 and alpine3 build images after applying the symlink changes, using the upstream repos https://github.com/openjdk/ Centos7 build image JDK11u
JDK21u
JDK22u
Alpine3 build image JDK11u
JDK17u
JDK21u
Looks like it finds them easy |
The current java install on UNIX platforms puts a symlink into
/usr/lib/jvm/jdk-XX
(except JDK 8 which uses/usr/lib/jvm/jdk8
) This issue is proposing changing that to/usr/lib/jvm/jdkXX
for two reasons:/usr/lib/jvm/jdkXX
for a suitable boot JDK, so it would make our configurations more standardised and potentially reduce the amount of logic needed in theplatform-specific-configuration
scripts scripts.e.g.
The decision here would need to be based on whether we want to be explicit about the boot JDK used (And we generally do use "one version back" which would be inconsistent with the autodetection) - or let it be autodetected (with the note that configure can still pick up things like
/usr/lib/jvm/jdk-11.0.18+10
even without the short version)This is partially driven by the fact that many of our static docker containers are set up with
/usr/lib/jvm/jdk17
as the jenkins agent VM so we should aim to be consistent one way or another.Given that the autodetection will pick up a full path like
/usr/lib/jvm/jdk-11.0.18+10
regardless, I don't think there's a disadvantage to allowing/usr/lib/jvm/jdk11
and would recommend we change what's in the playbooks and build scripts to use that path.The text was updated successfully, but these errors were encountered: