From 1aca75111df1fbf65908fecd01a695699c7833a1 Mon Sep 17 00:00:00 2001 From: Eduardo Gonzalez Date: Fri, 28 Apr 2017 01:03:28 +0200 Subject: [PATCH] Fix Incorrect timezone in ubuntu horizon images Ubuntu removed tzdata and locales from docker images by default, this is causing horizon to not come up failing setting timezone: ```ValueError: Incorrect timezone setting: UTC``` Change-Id: I5bbc4d949ed481d1f6629dbb2f5edad174a36e63 Closes-Bug: #1686830 --- docker/horizon/Dockerfile.j2 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docker/horizon/Dockerfile.j2 b/docker/horizon/Dockerfile.j2 index 238cb468b2..0bea953304 100644 --- a/docker/horizon/Dockerfile.j2 +++ b/docker/horizon/Dockerfile.j2 @@ -50,11 +50,13 @@ RUN sed -i -r 's,^(Listen 80),#\1,' /etc/httpd/conf/httpd.conf \ 'apache2', 'gettext', 'libapache2-mod-wsgi', + 'locales', 'openstack-dashboard', 'python-manila-ui', 'python-murano-dashboard', 'python-sahara-dashboard', - 'python-trove-dashboard' + 'python-trove-dashboard', + 'tzdata' ] %} {{ macros.install_packages(horizon_packages | customizable("packages")) }} @@ -99,7 +101,9 @@ RUN sed -i -r 's,^(Listen 80),#\1,' /etc/httpd/conf/httpd.conf \ {% set horizon_packages = [ 'apache2', 'gettext', - 'libapache2-mod-wsgi' + 'libapache2-mod-wsgi', + 'locales', + 'tzdata' ] %} {{ macros.install_packages(horizon_packages | customizable("packages")) }}