From 05c20dec678a959f89acd657a98c46ebda55fd69 Mon Sep 17 00:00:00 2001
From: Eric Schoville <eric.schoville@wisc.edu>
Date: Fri, 6 Nov 2020 19:14:56 +0000
Subject: [PATCH] Add Timezone to Docker Image - INPLATFORM-387

---
 Dockerfile | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index bcf74ee..80be707 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,7 +3,7 @@ FROM ubuntu:18.04
 
 # From https://github.com/jbrazda/ic-sagent-docker
 
-MAINTAINER Eric Schoville <>
+LABEL maintainer="doit-integration-platform@office365.wisc.edu"
 
 # POD and REGION can be inferred from the web URL of your Informatica Cloud site.
 # The values for POD and REGION probably need changing for you.  Setting these as
@@ -13,6 +13,7 @@ ARG POD=usw3
 ARG REGION=dm-us
 ENV POD=$POD
 ENV REGION=$REGION
+ENV TZ=America/Chicago
 
 # You should be able to download the Secure Agent binary from the following URL without authentication:
 
@@ -23,16 +24,20 @@ ENV INFA_HOME=/home/$USER/infaagent
 # install system tools
 RUN apt-get update && apt-get install -y \
 curl \
+jq \
 less \
+libsqliteodbc \
 locales \
 locales-all \
+sqlite3 \
 sudo \
+tzdata \
 unzip \
-jq \
-sqlite3 \
-libsqliteodbc \
 wget
 
+RUN ln -fs /usr/share/zoneinfo/$TZ /etc/localtime \
+&& dpkg-reconfigure -f noninteractive tzdata
+
 # Snowflake ODBC
 RUN wget --no-directories --recursive --level=1 --no-parent --accept 'snowflake-odbc*.deb' https://sfc-repo.snowflakecomputing.com/odbc/linux/latest/index.html && \
 dpkg -i --ignore-depends=unixodbc snowflake-odbc*.deb && \
-- 
GitLab