lewis_yan
d16ae56f9a
fix: fix OpenSSL and Kerberos package names for Debian Trixie
...
libcrypto3 doesn't exist as separate package on Trixie (part of libssl3).
Use correct package names: libssl3, libkrb5-3, krb5-user.
2026-04-01 16:12:51 +08:00
lewis_yan
0dc5a3d730
fix: add OpenSSL and Kerberos dependencies for msodbcsql18 driver
...
The ODBC Driver 18 requires libssl, libcrypto, and Kerberos libraries
to function. Also set LD_LIBRARY_PATH to include the driver lib64 directory.
2026-04-01 16:07:06 +08:00
lewis_yan
c146409012
fix: manually register ODBC Driver 18 by appending to odbcinst.ini
...
Instead of using odbcinst command (location uncertain), directly append
driver config to /etc/odbcinst.ini
2026-04-01 15:56:25 +08:00
lewis_yan
f3d367db02
fix: remove unnecessary odbcinst copy, use system-installed version
...
The odbcinst binary is provided by unixodbc installed in the runtime
image, not copied from builder.
2026-04-01 15:50:54 +08:00
lewis_yan
8e62124695
fix: copy odbcinst binary from builder to runtime image
...
The odbcinst binary is installed in /usr/bin/ by unixodbc, not
/usr/local/bin/. Copy it explicitly to the runtime image.
2026-04-01 15:48:25 +08:00
lewis_yan
e65bc8b8b1
fix: use libodbc2 instead of libodbc1 for Debian Trixie
2026-04-01 15:44:59 +08:00
lewis_yan
5f4d27952a
fix: register ODBC Driver 18 in runtime image
...
The msodbcsql18 driver needs to be registered with odbcinst so that
unixODBC can find it when pyodbc connects to SQL Server.
2026-04-01 15:30:46 +08:00
lewis_yan
5f37a9391b
fix: use ODBC Driver 18 for SQL Server instead of Driver 17
...
The settings.py is configured to use "ODBC Driver 18 for SQL Server",
so we need to install msodbcsql18 package.
2026-04-01 15:10:59 +08:00
lewis_yan
065278a15f
fix: add unixodbc runtime library to Dockerfile
...
The runtime image needs libodbc.so.2 for pyodbc to work with SQL Server.
2026-04-01 15:06:03 +08:00
lewis_yan
8c7761ed26
fix: correct msodbcsql17 library path in Dockerfile
...
The msodbcsql17 package installs to /opt/microsoft/msodbcsql17/, not
/usr/lib/x86_64-linux-gnu/. Copy from the correct path in runtime image.
2026-04-01 15:02:16 +08:00
lewis_yan
38d7da3762
fix: copy ODBC driver libraries to runtime image in backend Dockerfile
...
msodbcsql17 and its dependencies (libodbc.so.2, libodbcinst.so.2,
libmsodbcsql-17.so, libiconv.so.2, libcharset.so.1) were only installed
in the builder stage but not copied to the runtime image, causing
"libodbc.so.2: cannot open shared object file" at startup.
2026-04-01 14:40:44 +08:00
lewis_yan
e0545af483
chore: restore Dockerfiles and update Jenkinsfile paths
...
- Add web/Dockerfile for frontend image build
- Add backend/Dockerfile for backend image build
- Update Jenkinsfile paths from docker_env/ to web/ and backend/
Note: docker_env directory was removed; Dockerfiles now placed in respective app directories.
2026-04-01 10:50:06 +08:00