-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Add example of default Cloud Native Buildpacks Builder #19967
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
Comments
The default builder includes several buildpacks that might influence how a Boot app gets configured in the resulting container. We should look at these other Java-related buildpacks as well to see if any of them have env variables that we might want to document (for example https://github.com/cloudfoundry/debug-cnb/blob/master/README.md or https://github.com/cloudfoundry/build-system-cnb/blob/master/README.md). |
I am starting to wonder if this is a good idea considering that some options have changed quite a lot recently and keeping them in sync on our side is challenging (that can be a problem for users on its own as well). Flagging for team attention to discuss this again. |
I agree that Boot should probably kick out to Paketo Java Buildpack documentation that contains an up-to-date collection of possible configuration options. We'll be working on that over the next couple of weeks. Also, it should be noted that when staging happens, all available configuration options are printed as part of the logs. |
Paketo buildpacks documentation has been updated, so the Spring Boot docs can now link to the relevant section in paketo.io: https://paketo.io/docs/buildpacks/configuration/#environment-variables. We should include a disclaimer that the information provided by this link only applies when the Paketo builder and buildpacks are used, and other CNB implementations might work differently. |
Uh oh!
There was an error while loading. Please reload this page.
The build plugins use the
cloudfoundry/cnb:0.0.43-bionic
Builder by default, which bundles the OpenJDK Buildpack. The OpenJDK Buildpack exposes a number of options as env variables, see https://github.com/cloudfoundry/openjdk-cnb/blob/master/README.md.A couple examples demonstrating the use of the default builder with the OpenJDK Buildpack would be interesting to help users getting started.
The text was updated successfully, but these errors were encountered: