fix(docker): bump ingestor base to python 3.12.10 for cryptography's Rust MSRV (#858)

This commit is contained in:
l5y
2026-07-25 19:34:22 +02:00
committed by GitHub
parent b013faf13d
commit 8d25dd42cd
2 changed files with 17 additions and 2 deletions
+8 -1
View File
@@ -2665,7 +2665,14 @@ Rust-drift caveat, so the next failure of this class is recognised quickly: a
future `cryptography` bump may require a newer Rust than the pinned Alpine
release ships; the failure mode is this same job failing with a Rust version
error, and the remedies are bumping `PYTHON_VERSION` (newer Alpine) or capping
`cryptography` in `data/requirements.txt`.
`cryptography` in `data/requirements.txt`. This drift was first hit at v0.7.3
(run 30155699130): `cryptography` 49.0.0 requires rustc 1.83, but the then-pinned
`3.12.6-alpine` (Alpine 3.20) ships Rust 1.78 — fixed by bumping `PYTHON_VERSION`
to `3.12.10` (`-alpine` → Alpine 3.22 → Rust 1.87), keeping `cryptography`
current. That bump is bounded above: Docker Hub published no
`windowsservercore-ltsc2022` base past 3.12.10 and the `production-windows` stage
shares this ARG, so a further bump must split the ARG per stage (or cap
`cryptography`) rather than 404 the Windows base.
### DK-R1 — Regression: prior acceptance still holds
```bash
+9 -1
View File
@@ -14,7 +14,15 @@
# limitations under the License.
ARG TARGETOS=linux
ARG PYTHON_VERSION=3.12.6
# This pin is bounded on both sides (DK-A2 Rust-drift caveat):
# lower — the resolved Alpine base must ship Rust >= cryptography's MSRV,
# because armv7 publishes no wheel and compiles the Rust core from
# source: 3.12.10-alpine -> Alpine 3.22 -> Rust 1.87 >= crypto 49's 1.83.
# upper — Docker Hub published no `windowsservercore-ltsc2022` base past
# 3.12.10, and production-windows below reuses this same ARG.
# Raise the floor by bumping here; if crypto's MSRV ever outruns the Alpine that
# 3.12.10 resolves to, split this ARG per stage rather than 404 the Windows base.
ARG PYTHON_VERSION=3.12.10
# Linux production image
FROM python:${PYTHON_VERSION}-alpine AS production-linux