Skip to content
Snippets Groups Projects
Commit 8fd960cf authored by Allen Gilliland's avatar Allen Gilliland
Browse files

allow the JVM timezone to be set via environment variable when launching from docker image.

parent eaf36711
Branches
Tags
No related merge requests found
......@@ -25,5 +25,12 @@ if [ ! -z "$RDS_HOSTNAME" ]; then
fi
# Setup Java Options
JAVA_OPTS="-Dlogfile.path=target/log -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC"
if [ ! -z "$JAVA_TIMEZONE"]; then
JAVA_OPTS="${JAVA_OPTS} -Duser.timezone=${JAVA_TIMEZONE}"
fi
# Launch the application
exec java -Dlogfile.path=target/log -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -jar /app/metabase.jar
exec java $JAVA_OPTS -jar /app/metabase.jar
......@@ -113,7 +113,8 @@
(defn init!
"General application initialization function which should be run once at application startup."
[]
(log/info (format "Starting Metabase version %s..." config/mb-version-string))
(log/info (format "Starting Metabase version %s ..." config/mb-version-string))
(log/info (format "System timezone is '%s' ..." (System/getProperty "user.timezone")))
(reset! metabase-initialization-progress 0.1)
;; First of all, lets register a shutdown hook that will tidy things up for us on app exit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment