Skip to content

Commit

Permalink
Pin versions of Microsoft ODBC packages used for Python (#2324)
Browse files Browse the repository at this point in the history
* Pin versions of Microsoft ODBC packages used for Python

* Don't wait for input from user to install ODBC packages via APT

* Accept EULA

* Remove APT upgrade causing timeouts for downgraded packages

---------

Co-authored-by: REDMOND\williamhe <williamhe@microsoft.com>
  • Loading branch information
cormacpayne and william-msft authored Jan 8, 2024
1 parent 5845d3e commit d131b97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions images/runtime/python/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ 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 msodbcsql17=17.10.4.1-1 \
&& ACCEPT_EULA=Y apt-get install -y msodbcsql18=18.2.2.1-1 \
&& ACCEPT_EULA=Y apt-get install -y mssql-tools18 \
&& echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc \
&& source ~/.bashrc \
Expand Down
2 changes: 0 additions & 2 deletions images/runtime/python/template.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ RUN pip install --upgrade pip \
&& dpkg -i libffi6_3.2.1-9_amd64.deb \
&& rm libffi6_3.2.1-9_amd64.deb; fi \
&& ln -s /opt/startupcmdgen/startupcmdgen /usr/local/bin/oryx \
&& apt-get update \
&& apt-get upgrade --assume-yes \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/oryx

Expand Down

0 comments on commit d131b97

Please sign in to comment.