Skip to content

Commit

Permalink
Add java opts override support (#1857)
Browse files Browse the repository at this point in the history
Signed-off-by: wslulciuc <[email protected]>
  • Loading branch information
wslulciuc committed Feb 2, 2022
1 parent 6aba1f9 commit d9b2c7a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ if [[ -z "${MARQUEZ_CONFIG}" ]]; then
echo "WARNING 'MARQUEZ_CONFIG' not set, using development configuration."
fi

# Start http server with configuration
java -Duser.timezone=UTC -Dlog4j2.formatMsgNoLookups=true -jar marquez-*.jar server "${MARQUEZ_CONFIG}"
# Adjust java options for the http server
JAVA_OPTS="${JAVA_OPTS} -Duser.timezone=UTC -Dlog4j2.formatMsgNoLookups=true"

# Start http server with java options and configuration
java ${JAVA_OPTS} -jar marquez-*.jar server ${MARQUEZ_CONFIG}

0 comments on commit d9b2c7a

Please sign in to comment.