Skip to content

Check for existing vmoption before appending - #7

Open
libantema wants to merge 2 commits into
OpenIntegrationEngine:mainfrom
libantema:entrypoint-vmoptions-fix
Open

libantema wants to merge 2 commits into
OpenIntegrationEngine:mainfrom
libantema:entrypoint-vmoptions-fix

Conversation

@libantema

Copy link
Copy Markdown

Prevent duplicate entries in oieserver.vmoptions. Current behavior will infinitely re-append all VMOPTIONS every time the container starts, even if VMOPTIONS has not changed.

Prevent duplicate entries in oieserver.vmoptions.

Signed-off-by: libantema <39926488+libantema@users.noreply.github.com>
Signed-off-by: libantema <39926488+libantema@users.noreply.github.com>
ssrowe referenced this pull request in ssrowe/engine-docker Oct 16, 2026
Write mirth.properties with a set_property function that matches the
key literally and passes the value to awk through the environment. Values
containing &, \, /, | or # were corrupted by sed, keys were matched as
unanchored prefixes, and the tr filter stripped non-ASCII characters. A
value containing a newline is now rejected. Named variables, _MP_
variables and the mirth_properties secret all use the same function.

Write VMOPTIONS and the oieserver_vmoptions secret (or the old name
mcserver_vmoptions) to conf/docker.vmoptions on every start instead of
appending to oieserver.vmoptions. The file is included from
custom.vmoptions, after the defaults, so -Xmx from VMOPTIONS now wins
(#5), and restarts no longer add duplicate lines. It is not included
from oieserver.vmoptions because the install4j launcher follows at most
three -include-options per file and that file already has three.

Exit with an error when CUSTOM_JARS_DOWNLOAD, EXTENSIONS_DOWNLOAD or
KEYSTORE_DOWNLOAD fails, and download into a temporary directory since
/opt/engine is read-only. Quote expansions, use globs instead of ls,
and write SERVER_ID without sed escaping.

README: fix the vmoptions secret name, remove the claim that DELAY checks
the database, document USE_SYSTEM_CA_CERTS and recommend
--cap-drop ALL --security-opt no-new-privileges.

Fixes #5. Supersedes #7 and #8.

Co-authored-by: Jon Bartels <jonathan.bartels@gmail.com>
Co-authored-by: libantema <39926488+libantema@users.noreply.github.com>
Signed-off-by: Sean Rowe <1843446+ssrowe@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant