Commit 012e6bf
fix(ci): use direct download for IBM iAccess ODBC driver
The IBM apt repository method was causing CI build failures with "Unable to locate package ibm-iaccess" despite apt update succeeding. The original approach had multiple issues: missing -y flag for non-interactive mode, using apt instead of apt-get in scripts, and unreliable repository package resolution.
Switch to downloading the .deb package directly from IBM's server and use dpkg --force-depends to bypass dependency name mismatches. The package declares old Debian package names (libodbc1, odbcinst1debian2) that don't exist in Debian 12, but the actual dependencies (unixodbc, odbcinst) are already installed earlier in the Dockerfile.
This is more reliable because:
- Eliminates repository caching and resolution issues
- Provides predictable versioning (1.1.0.13)
- Reduces build steps and potential failure points
- Uses dpkg --force-depends safely since the actual libraries are present under different package names
- apt-get install -f ensures any actual missing dependencies are resolved
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 62362d7 commit 012e6bf
2 files changed
Lines changed: 20 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| |||
0 commit comments