-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Offlinizing java buildpack does not support cflinuxfs4 #986
Comments
Are you able to access https://java-buildpack.cloudfoundry.org/jvmkill/jammy/x86_64/index.yml? That looks like the correct URL and that loads for me. |
Hi @dmikusa , thank you for the prompt feedback. Currently, just for testing, we edited the mentioned line above manually. Could you please recheck and confirm how the buildpack can be offlinized for jammy(cflinuxfs4) using the rake command? |
For now, I would suggest that you just edit that variable prior to packaging. It is possible something was missed in the commit for Jammy support. Jammy support is still pretty new, so I don't think this code has been exercised much yet. The platforms list is going to control what dependencies are included. If you need one buildpack to support both platforms, then include both Obviously, we should have a control/setting exposed for that. Perhaps, |
We are offlinizing the java_buildpack.
We've noticed that when the packaging command for the offline buildpack is executed (as it says in the README):
bundle exec rake clean package OFFLINE=true PINNED=true
In the output it's visible that it's pointing to bionic instead of jammy.
However, on cf push we get the following error:
ERROR Finalize failed with exception #<RuntimeError: Jvmkill Agent error: Unable to find cached file for https://java-buildpack.cloudfoundry.org/jvmkill/jammy/x86_64/index.yml>
Jvmkill Agent error: Unable to find cached file for https://java-buildpack.cloudfoundry.org/jvmkill/jammy/x86_64/index.yml
Failed to compile droplet: Failed to run finalize script: exit status 1
We've tried locally to edit package.rb line76 with jammy, i.e. PLATFORMS = %w[bionic jammy].freeze and it works.
Could you, please review our proposal and adjust it/add it to the buildpack, so we can use it offlinized?
The text was updated successfully, but these errors were encountered: