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
not able to run task with java 11 / allow definition of environment variables for a task when launched on cloudfoundry #3467
Comments
Hi, @imod. I had initially thought we could hack it by passing
Maybe @markpollack or @dturanski might have any other ideas to solve this. Let's see what they have to say. |
@sabbyanandan - I notice that the task launcher does not apply |
This works for streams:
Note, spaces after the
|
Resolved as part of spring-cloud/spring-cloud-deployer-cloudfoundry#308 |
@tzolov do you provide SNAPSHOT builds of SCDF? |
@imod Given this is fixed in Spring Cloud Deployer CF |
No, you are referring to the SCDF |
@ilayaperumalg unfortunate it seems not to be enough to just define:
because a class seems to be missing now:
|
What version of SCDF do you use? You need to be on |
@ilayaperumalg I still did not manage to get the dependencies to work without getting:
This is the source I use for testing: https://gist.github.com/imod/b7998965c31c4dd850999613c5db8460 |
@tzolov if understand this all correctly, then this means it will not be possible to create task on CF that run with java11 and need parameters - as normal parameters will end up as environment variables and these are fixed on the created CF app/container. I think this quite a limitation of the current implementation and should be clearly documented. |
@imod - I'm not sure what you mean by |
@dturanski indeed, I did mix up some stuff here - sorry for the noise! |
Problem description:
Following scenario:
java_buildpack
to create the app container with java 8 (java 8 is the default)Solution description:
There should be a way to pass environment variables. To tell the java_buildpack to use the correct java version, one has to define the following environment variable (e.g. in the
manifest.yml
:JBP_CONFIG_OPEN_JDK_JRE: '{jre: { version: 11.+ }}'
A possible solution could be additional params like this:
deployer.cloudfoundry.env.JBP_CONFIG_OPEN_JDK_JRE='{jre: { version: 11.+ }}'
deployer.cloudfoundry.env.XXXX=zzzzzzz
deployer.cloudfoundry.env.YYYY=wwwww
It is important to understand that defining only one environment variable might not be enough.
How ever, these environment variables must then be passt to cloudfoundry while deploying the app.
Additional context:
I also created an issue which describes that currently the buildpack parameter is not interpreted correctly: #3466
The text was updated successfully, but these errors were encountered: