From 7fcd2338adbde0313887be0883e63109edaa50d5 Mon Sep 17 00:00:00 2001
From: Eric Schoville <eric.schoville@wisc.edu>
Date: Mon, 9 Nov 2020 09:22:33 -0600
Subject: [PATCH] Something broke in this commit, reverting.

---
 Dockerfile   | 5 +++--
 odbcinst.ini | 9 ---------
 2 files changed, 3 insertions(+), 11 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 80be707..c73ac36 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -32,6 +32,7 @@ locales-all \
 sqlite3 \
 sudo \
 tzdata \
+unixodbc \
 unzip \
 wget
 
@@ -40,7 +41,7 @@ RUN ln -fs /usr/share/zoneinfo/$TZ /etc/localtime \
 
 # 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 && \
+dpkg -i snowflake-odbc*.deb && \
 rm snowflake-odbc*.deb
 
 # Set the locale, Locale defaults are necessary for agent to operate correctly
@@ -56,7 +57,7 @@ RUN mkdir /exports && chown $USER:$USER /exports
 USER $USER
 
 # Add the SQLite ODBC information.  The main odbcinst.ini is in INFA_HOME directory.
-COPY --chown=agent odbcinst.ini /home/agent/.odbcinst.ini
+ADD odbcinst.ini /home/agent/.odbcinst.ini
 
 # Create directories so that volume mounts pick up the correct users
 RUN mkdir -p ~/databases && \
diff --git a/odbcinst.ini b/odbcinst.ini
index 7fbb8b8..f6c30c7 100644
--- a/odbcinst.ini
+++ b/odbcinst.ini
@@ -3,12 +3,3 @@ Description = SQLite3 ODBC Driver
 Driver = /usr/lib/x86_64-linux-gnu/odbc/libsqlite3odbc.so
 Setup = /usr/lib/x86_64-linux-gnu/odbc/libsqlite3odbc.so
 UsageCount = 1
-
-[SnowflakeDSIIDriver]
-APILevel=1
-ConnectFunctions=YYY
-Description=Snowflake DSII
-Driver=/usr/lib/snowflake/odbc/lib/libSnowflake.so
-DriverODBCVer=03.52
-SQLLevel=1
-UsageCount=1
-- 
GitLab