Commit 9faa46f
ci(docker): assert the SQL drivers are in the published runtime image
The smoke step proved the CLI resolved but nothing asserted that `pg` and
`mysql2` -- which docker/Dockerfile installs and docker/README.md publishes
as a maintained promise -- are actually in the built image. The in-repo
`check:docs-image-tag` pin cannot see that: it compares the install line
against the published table, and both would still agree if the drivers
vanished from the image.
The probe resolves from inside the global tree (`-w`), which is both how the
real boot path resolves the drivers and the only spelling that discriminates:
`npm install -g` writes to /usr/local/lib/node_modules, which is not on
`require()`'s search path from the image's WORKDIR (/srv/app), and the
node:22-slim base sets no NODE_PATH.
Verified in both directions against purpose-built images before landing:
green with the drivers present, red (`Cannot find module 'pg'`) without.
Claude-Session: https://claude.ai/code/session_01PU9zBGbH2s2ZtxSyu963M3
Co-authored-by: Claude <noreply@anthropic.com>1 parent c463d03 commit 9faa46f
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
100 | 119 | | |
101 | 120 | | |
102 | 121 | | |
103 | 122 | | |
104 | 123 | | |
| 124 | + | |
| 125 | + | |
0 commit comments