-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add options JAVA_OPTS and HEAP_SIZE to startup script. #125
Conversation
Er, realizing I probably should ask this here instead of on the issue/ticket... Thanks for the PR. Just to clarify, do you want to add the specific heap size in addition to the percentage? Or would you want to use the fixed heap size instead of the percentage? We moved from fixed size to percentage when we started running in Kubernetes, but I'm unclear if there is an environment in which a person would want both(?) @cachemeoutside Also, weren't you talking about the need for JAVA_OPTS for something else recently (I'm forgetting what it was exactly)? If so, maybe we want to split out that option from the fixed heap setting? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, looking at this again now that I'm a little more awake... this doesn't prevent us from using JAVA_OPTS independent from the fixed heap setting so it should be good to go, as is, I think. @cachemeoutside do you agree?
Okay, interesting, the automated build failed because of the missing ENVs. I thought GitHub was giving us the chance to review it before we ran the actions so that we could confirm the PR wasn't doing anything it shouldn't, but it seems the secrets are still not available to the PR even after reviewing a PR from a fork. I'm learning a lot about GitHub forked PRs today. So I guess we have to test PRs from forks locally and then override the merge block with admin privs? That seems like a bit of a pain. @cachemeoutside do you know another way around this? I guess we could just skip the kakadu part of the build on forked PRs. |
@janhoy would you mind pulling in the last commit from the base/main branch? I thought I'd be able to do it (without creating my own branch), but it seems that because this is a remote fork I cannot. That latest commit will hopefully stop the automated build from failing on remote PRs. |
Done |
Wouldn't re: I guess it just really depends how simple we want to parameterize the JVM settings. In our case, there were times I just ended up overriding(through k8s) the entrypoint to specify the JVM settings I needed. I don't have a strong opinion other than the fact this would add more logic into the Dockerfile that we'd have to keep track of. |
My understanding is that |
@janhoy Just to check back in, are you still thinking you'd prefer to use |
That's what we have been using, but I'm willing to skip that if clause of the PR and just let it be a general purpose variable to pass in whatever a user needs. We may convert to specifying RAM in docker-compose instead.. I can push a change |
That's a good point too. We could just keep the JAVA_OPTS in line 15 and people could pass in whatever they want there. Do you want to remove 9-12 and we'll just merge the JAVA_OPTS addition? |
…r any other option in JAVA_OPTS
Done. I also added the var to Dockerfile and a short documentation to README so people are aware of it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic, thanks!
Fixes #124