Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
8fd960cf
Commit
8fd960cf
authored
9 years ago
by
Allen Gilliland
Browse files
Options
Downloads
Patches
Plain Diff
allow the JVM timezone to be set via environment variable when launching from docker image.
parent
eaf36711
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/docker/run_metabase.sh
+8
-1
8 additions, 1 deletion
bin/docker/run_metabase.sh
src/metabase/core.clj
+2
-1
2 additions, 1 deletion
src/metabase/core.clj
with
10 additions
and
2 deletions
bin/docker/run_metabase.sh
+
8
−
1
View file @
8fd960cf
...
...
@@ -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
This diff is collapsed.
Click to expand it.
src/metabase/core.clj
+
2
−
1
View file @
8fd960cf
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment