Commit b29a265
fix(scanner): pin ramparts builder to rust:1-slim-bookworm (MCP-2395) (#665)
* fix(scanner): pin ramparts builder to rust:1-slim-bookworm (MCP-2395)
The unpinned rust:1-slim builder tag now resolves to Debian trixie
(glibc 2.41) while the runtime stage stays on debian:bookworm-slim
(glibc 2.36). The binary compiled on trixie links GLIBC_2.39 symbols
that bookworm cannot satisfy, causing every ramparts scan to fail with:
ramparts: /lib/aarch64-linux-gnu/libc.so.6: version GLIBC_2.39 not found
Fix: pin the builder to rust:1-slim-bookworm so both build and runtime
stages share glibc 2.36.
Verified: docker build succeeds; `ramparts --version` exits 0 on the
resulting image (no GLIBC error). Noted separately that the ramparts
v0.8.x CLI has switched from file-based to URL-based scanning
(entrypoint CLI compat tracked as follow-up issue).
Co-Authored-By: Paperclip <noreply@paperclip.ing>
* fix(scanner): unblock hanging ramparts image build (MCP-2395)
The rust:1-slim-bookworm pin invalidated the buildx cache, forcing a cold
cargo build of ramparts. Combined with the QEMU-emulated linux/arm64 leg
(~5-10x slower), the cold build exceeds the runner budget and the job is
cancelled mid-compile (last live line: Compiling want v0.3.1). Build
ramparts for linux/amd64 only via a per-scanner matrix platforms override;
the other (Python) scanners keep multi-arch.
Co-Authored-By: Paperclip <noreply@paperclip.ing>
---------
Co-authored-by: Paperclip <noreply@paperclip.ing>1 parent dbaabc3 commit b29a265
2 files changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| 50 | + | |
44 | 51 | | |
45 | 52 | | |
46 | 53 | | |
| 54 | + | |
47 | 55 | | |
48 | 56 | | |
49 | 57 | | |
| 58 | + | |
50 | 59 | | |
51 | 60 | | |
52 | 61 | | |
| 62 | + | |
53 | 63 | | |
54 | 64 | | |
55 | 65 | | |
| |||
88 | 98 | | |
89 | 99 | | |
90 | 100 | | |
91 | | - | |
| 101 | + | |
92 | 102 | | |
93 | 103 | | |
94 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
11 | 17 | | |
12 | 18 | | |
13 | 19 | | |
| |||
0 commit comments