Skip to content

chore: add required java parameters + fix JAVA_OPTIONS #741

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

edevosc2c
Copy link
Member

@edevosc2c edevosc2c commented Apr 4, 2025

First part

In #731, @jusabatier tried to add the support for JAVA_OPTIONS. JAVA_OPTIONS is a variable for adding more parameters to JAVA_OPTS at runtime.

In this PR, this fixes this ability which didn't work because in #731, JAVA_OPTIONS was only evaluated at Docker build. There is now a script that appends JAVA_OPTIONS to JAVA_OPTS at runtime.

And also avoid confusion, because we previously used JAVA_OPTS when JAVA_OPTIONS wasn't supported, and I saw some usage in some docker compose. That was used without thinking that if you define JAVA_OPTS at runtime, then you lose all the parameters set for JAVA_OPTS in the Dockerfile. (-Dgeorchestra.datadir=/etc/georchestra -Xms512m -Xmx512m -XX:MaxPermSize=128m)
Essentially, you could very well run into a broken mapstore-georchestra install without understanding what happened exactly.

Second part

Add these standard java parameters that are used in all of our mapstore install and are required for mapstore-geOrchestra to function well :

-DPRINT_BASE_URL=pdf -Dgeorchestra.extensions=/mnt/mapstore_extensions

This will avoid having to pass these parameters in docker compose or helm chart, guaranteeing that these parameters will always be there and work.

This is similar to what I suggested in georchestra/georchestra-gateway#147

edevosc2c added a commit to georchestra/helm-georchestra that referenced this pull request Apr 4, 2025
edevosc2c added a commit to georchestra/helm-georchestra that referenced this pull request Apr 4, 2025
edevosc2c added a commit to georchestra/helm-georchestra that referenced this pull request Apr 7, 2025
* chore: remove all jmx + monitoring in the helm chart

close #71

* fix: revert to usage JAVA_OPTS in mapstore until georchestra/mapstore2-georchestra/pull/741 merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant