Skip to content

Using the ibmjre no longer works with the java_buildpack #902

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

Closed
kevin-ortega opened this issue Sep 21, 2021 · 5 comments
Closed

Using the ibmjre no longer works with the java_buildpack #902

kevin-ortega opened this issue Sep 21, 2021 · 5 comments

Comments

@kevin-ortega
Copy link

The IBM Java team removed the repo where the java_buildpack was downloading the IBM JRE.

The index.yml now resides at https://public.dhe.ibm.com/ibmdl/export/pub/systems/cloud/runtimes/java/meta/8.0/sfj/linux/x86_64

Additionally, the url for the jvmkill agent no longer exists.

Just changing the repository_root for the jre in the config file is not sufficient because the index format has also changed.

Previously, the format was:

1.8.0_sr6fp26: https://public.dhe.ibm.com/ibmdl/export/pub/systems/cloud/runtimes/java/8.0.6.26/linux/x86_64/ibm-java-jre-8.0-6.26-x86_64-archive.bin
1.8.0_sr6fp30: https://public.dhe.ibm.com/ibmdl/export/pub/systems/cloud/runtimes/java/8.0.6.30/linux/x86_64/ibm-java-jre-8.0-6.30-x86_64-archive.bin
1.8.0_sr6fp31: https://public.dhe.ibm.com/ibmdl/export/pub/systems/cloud/runtimes/java/8.0.6.31/linux/x86_64/ibm-java-jre-8.0-6.31-x86_64-archive.bin

Now the format is:

8.0.6.35:
    uri: https://public.dhe.ibm.com/ibmdl/export/pub/systems/cloud/runtimes/java/8.0.6.35/linux/x86_64/ibm-java-sfj-8.0-6.35-x86_64-archive.bin
    sha256sum: d9ad4dd78cde42b44a0e9ba91d6b85fb134b56fb30ef0009153cfba54778978e
    license: http://www14.software.ibm.com/cgi-bin/weblap/lap.pl?l=en&la_formnum=&li_formnum=L-SMKR-AVSEUH

8.0.6.36:
    uri: https://public.dhe.ibm.com/ibmdl/export/pub/systems/cloud/runtimes/java/8.0.6.36/linux/x86_64/ibm-java-sfj-8.0-6.36-x86_64-archive.bin
    sha256sum: aee78edcb2b1eed2e89b60ecfd787c77cc86e1fea646d06e5064f33615379bef
    license: http://www14.software.ibm.com/cgi-bin/weblap/lap.pl?l=en&la_formnum=&li_formnum=L-SMKR-AVSEUH
https://github.com/cloudfoundry/java-buildpack/blob/main/config/ibm_jre.yml

I think the repo root for the killjvm agent can be changed to https://github.com/ibmruntimes/jvmkill/tree/jvmkill-ibmagent/jvmkill-agent

@dmikusa
Copy link
Contributor

dmikusa commented Sep 22, 2021

@kevin-ortega Hi, thanks for raising this up.

The buildpack won't be able to consume that index.yml file. It needs to retain the same format as the original file. Is there a reason on your end for the change? Would it be possible to have the original format?

@kevin-ortega
Copy link
Author

@dmikusa-pivotal Hi Daniel, I do not know why the IBM Java team changed the format of the index file. The liberty buildpack is using the new format and index.yml location. I am in discussions with the Java team to see if they will continue to maintain the original index. Since I opened this issue I realized that the repo where the JREs are located still exists and it's the index file that wasn't updated as new JREs were released. If I can get the Java team to continue to maintain the index then I will close this issue. I guess an alternative would be to host the index somewhere else but then it would have to be maintained and updated when new JREs are released.

@kevin-ortega
Copy link
Author

@dmikusa-pivotal Some good news, I did convince the Java team to update the index.yml at https://raw.githubusercontent.com/ibmruntimes/ci.docker/master/ibmjava/meta/jre/linux/x86_64. So, I think for now the java_buildpack will continue to work with the IBM JRE. I don't know how long they will keep that index updated. It still may be a good idea if the java_buildpack worked with the new index format.

The immediate issue is resolved and this issue can be closed.

@dmikusa
Copy link
Contributor

dmikusa commented Sep 22, 2021

@kevin-ortega Thanks so much for checking into this. I'm glad to hear they will keep maintaining it. Let's see how this goes.

If that doesn't work, we can look at hosting the index.yml elsewhere.

@dmikusa dmikusa closed this as completed Sep 22, 2021
@kevin-ortega
Copy link
Author

@dmikusa-pivotal I don't see an option to reopen this issue. The IBM Java team is now insisting that the java buildpack must convert to the new URL and index format. They are not going to maintain the index at https://raw.githubusercontent.com/ibmruntimes/ci.docker/master/ibmjava/meta/jre/linux/x86_64.

For java 8 the buildpack must use https://raw.githubusercontent.com/ibmruntimes/ci.docker/master/ibmjava/meta/8.0/jre/linux/x86_64/index.yml

Format:

---
8.0.7.0: https://public.dhe.ibm.com/ibmdl/export/pub/systems/cloud/runtimes/java/8.0.7.0/linux/x86_64/ibm-java-jre-8.0-7.0-x86_64-archive.bin
8.0.7.5: https://public.dhe.ibm.com/ibmdl/export/pub/systems/cloud/runtimes/java/8.0.7.5/linux/x86_64/ibm-java-jre-8.0-7.5-x86_64-archive.bin
8.0.7.6: https://public.dhe.ibm.com/ibmdl/export/pub/systems/cloud/runtimes/java/8.0.7.6/linux/x86_64/ibm-java-jre-8.0-7.6-x86_64-archive.bin
8.0.7.10: https://public.dhe.ibm.com/ibmdl/export/pub/systems/cloud/runtimes/java/8.0.7.10/linux/x86_64/ibm-java-jre-8.0-7.10-x86_64-archive.bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants