Skip to content

Commit 123cc32

Browse files
committed
Add ADDITIONAL_VMOPTIONS env to support a different delimiter
Signed-off-by: Kaur Palang <[email protected]>
1 parent ced8be1 commit 123cc32

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

deploy/entrypoint.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,19 @@ if ! [ -z "${VMOPTIONS+x}" ]; then
145145
done
146146
fi
147147

148+
# merge additional vmoptions form a `|`-delimited string into /opt/engine/oieserver.vmoptions
149+
if ! [ -z "${ADDITIONAL_VMOPTIONS+x}" ]; then
150+
PREV_IFS="$IFS"
151+
IFS="|"
152+
read -ra pipe_vmoptions <<< "$ADDITIONAL_VMOPTIONS"
153+
IFS="$PREV_IFS"
154+
155+
for vmoption in "${pipe_vmoptions[@]}"
156+
do
157+
echo "${vmoption}" >> "$APP_DIR/oieserver.vmoptions"
158+
done
159+
fi
160+
148161
# merge the user's secret mirth.properties
149162
# takes a whole mirth.properties file and merges line by line with /opt/engine/conf/mirth.properties
150163
if [ -f /run/secrets/mirth_properties ]; then

0 commit comments

Comments
 (0)