Replies: 1 comment 1 reply
-
Yes. Launch Configuration needs to be configured at Launch or Runtime. That is when you actually execute the image generated by buildpacks. It does not apply at build time. The convention followed by Paketo buildpacks is that variables starting with If you want to set a launch time configuration variable at build time, you can do that with the environment variable buildpack like you mentioned. That will set the value you specify at build time in a way that it will be automatically applied when you run the application image (i.e. at launch time). Values set with the environment variables buildpack work like "default" values because a user can still override this at launch time, but it's optional and the user doesn't need to set it at launch time if the user accepts the default value you set. Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Hi Java Team,
In the java pack documentation, there are environment variables prefix with BPL_. But when I set this value during the pack building process (either via spring boot plugin configuration or pack command). The building log showing the configurated value, but it will not take effect when we run the built image.
I can however use the environment variables build pack to set these values and it will take effect when we run the image.
Is this the expected behavior? Since the java pack log is showing the launch configuration but it will not take effect when we run the image.
Example:
The BPL_DEBUG_ENABLED has been set to true but will not do anything when we run the image.
But if we set BPE_BPL_DEBUG_ENABLED=true, it will take effect.
Beta Was this translation helpful? Give feedback.
All reactions