GitHub user sueun-dev added a comment to the discussion: Docker image missing 
`libtdsodbc.so` driver

Confirmed on apache/airflow:latest (3.3.0, Debian bookworm): libtdsodbc.so 
genuinely isn't in the image, you didn't just miss it. A `find / -name 
'libtdsodbc*'` returns nothing, and dpkg shows freetds-bin, freetds-common, 
unixodbc and even msodbcsql18, but no `tdsodbc`. `odbcinst -q -d` only lists 
"ODBC Driver 18 for SQL Server".

The catch is that on Debian the FreeTDS ODBC driver lives in a separate 
`tdsodbc` package, not in freetds-bin, so freetds-bin gives you tsql/libct but 
not the .so you register. I ran `apt install tdsodbc` in the image and it drops 
`/usr/lib/<arch>/odbc/libtdsodbc.so`, owned by tdsodbc. The Dockerfile's 
RUNTIME_APT_DEPS lines this up: freetds-bin + unixodbc are listed, tdsodbc 
isn't.

For airgapped you'd build a child image or vendor the .deb. Whether to bake it 
in upstream is a maintainer call, worth a feature request.


GitHub link: 
https://github.com/apache/airflow/discussions/71116#discussioncomment-17908875

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to