diff --git a/Dockerfile b/Dockerfile index c5ac9d1e5f25f8cbb6dd2f1115243a09da88f671..b38154b66d70761f370a99a793b5d013bc21f7f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,7 +30,14 @@ sudo \ unzip \ jq \ sqlite3 \ -libsqliteodbc +libsqliteodbc \ +unixodbc \ +wget + +# 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 snowflake-odbc*.deb && \ +rm snowflake-odbc*.deb # Set the locale, Locale defaults are necessary for agent to operate correctly RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen diff --git a/README.md b/README.md index 47b2369035e30c67fc737ed2315d3e0edee90b70..60187593f8612f05dfb334374cbc46a4f0feea5d 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ * [Description](#description) * [Requirements](#requirements) * [The Image](#the-image) + * [ODBC](#odbc) * [Containers](#containers) * [Environment Variables](#environment-variables) * [Externalized Configurations](#externalized-configurations) @@ -49,6 +50,10 @@ The image is based on Ubuntu 18.04. It downloads and installs necessary depende 1. Clone this repository. 2. `docker build . -t iics_secure_agent:<tag>` - optionally pass --build-arg parameters for POD and REGION if the defaults are not correct. POD and REGION are also set as environment variables, because containers will use these values for communicating with the Informatica API. +### ODBC +[odbc]: #odbc +ODBC support has been added to this image, specifically support for SQLite3 and Snowflake. An odbc.ini file can be mounted into the container as /home/agent/.odbc.ini for setting up connections. Local files can be mounted or copied into the container as necessary. + ## Containers [container]: #containers The container executes a bash script called run_agent.sh upon start. It needs INFORMATICA_USER and INFORMATICA_PASSWORD environment variables set during runtime in order to communicate with the Informatica API to check and register the Secure Agent.