Skip to content

Commit

Permalink
Support ODBC Driver 17 and 18 side-by-side for Python runtimes (#1531)
Browse files Browse the repository at this point in the history
  • Loading branch information
cormacpayne committed Aug 25, 2022
1 parent 0405a71 commit 2403244
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions images/runtime/python/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ apt-get update \
apt-transport-https \
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen \
&& locale-gen \
&& ACCEPT_EULA=Y apt-get install -y msodbcsql17 \
&& ACCEPT_EULA=Y apt-get install -y msodbcsql18 \
&& ACCEPT_EULA=Y apt-get install -y mssql-tools18 \
&& echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc \
Expand All @@ -63,6 +64,12 @@ Description=Microsoft ODBC Driver 18 for SQL Server
Driver=/opt/microsoft/msodbcsql18/lib64/libmsodbcsql-18.1.so.1.1
Threading=1
UsageCount=1
[ODBC Driver 17 for SQL Server]
Description=Microsoft ODBC Driver 17 for SQL Server
Driver=/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.2.so.0.1
Threading=1
UsageCount=1
EOL

# Clean up for apt. Keeping at the very end to make sure it runs after every apt-get install.
Expand Down

0 comments on commit 2403244

Please sign in to comment.