Skip to content
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

Using custom image based on java11 doesn't work #76

Closed
rdpa opened this issue Aug 20, 2019 · 3 comments
Closed

Using custom image based on java11 doesn't work #76

rdpa opened this issue Aug 20, 2019 · 3 comments

Comments

@rdpa
Copy link

rdpa commented Aug 20, 2019

It appears that the operator sets some JAVA_OPTS to tune based on the java8 image, specifically -XX:+UseCGroupMemoryLimitForHeap. This option is not present in java 11, and so the JVM fails to start. I can't find a place to override these variables, or tell the operator not to set them.

Edit: Here is the offending line. Also note that setting -XX:MaxRAMFraction=1 is not advisable because it carries a high risk of getting the container OOMKilled.

Edit 2: The operator explicitly forbids JAVA_OPTS from being overridden

@tomaszsek
Copy link

Hi @rdpa,

JAVA_OPTS is hardcoded now. It will be fixed in the next release. Could you provide your jenkins docker image because we support only jenkins:lts for now?

Cheers

@rdpa
Copy link
Author

rdpa commented Aug 21, 2019

Hi, sure. I was attempting to use the jenkins:lts-jdk11 image. Thanks for the response!

@tomaszsek
Copy link

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

No branches or pull requests

2 participants