Skip to content

Commit 10aecd2

Browse files
authored
FIX: Installing Linux ODBC Dependencies in pipelines (#446)
* FIX: Installing ODBC v18 in pipelines * use v18 everywhere * TrustServerCertificate as yes * Encrypt as yes * Encrypt as yes in cstr * reverted back to v17
1 parent cdad07b commit 10aecd2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

azure-pipelines.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,20 @@ jobs:
211211
curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
212212
displayName: Install SQL Server
213213
214+
- script: |
215+
curl -sSL -O https://packages.microsoft.com/config/ubuntu/$(grep VERSION_ID /etc/os-release | cut -d '"' -f 2)/packages-microsoft-prod.deb
216+
sudo dpkg -i packages-microsoft-prod.deb
217+
rm packages-microsoft-prod.deb
218+
219+
sudo apt-get update
220+
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql17
221+
displayName: Install ODBC Driver
222+
214223
- script: |
215224
python -m pip install --upgrade pip wheel setuptools
216225
pip install tox
217226
git clone https://github.com/django/django.git
218-
displayName: Install requirements
227+
displayName: Install Python requirements
219228
220229
- script: |
221230
sed -i 's/MyPassword42/$(TestAppPassword)/g' testapp/settings.py

0 commit comments

Comments
 (0)