Repository navigation
[BUILD,FIX] Dockerfile: verified fallback for the ONNX Runtime release download - #10951
Conversation
…e download github.com/microsoft/onnxruntime answers 404 since 2026-11-18 (#10946), so the "Deploy container images" nightly fails in the base stage when it downloads onnxruntime-linux-<arch>-1.30.0.tgz (runs 44214412845, 44435430923, 44652120614). #10947 added a fallback for the vcpkg overlay port's source archive; the Dockerfile's prebuilt download was not covered. Try Microsoft's release first and then PhotoPrism's mirror of the same release archives (the mirror #10947 uses). Each download must match the pinned SHA256; version and hashes are unchanged. The mirror's x64 and aarch64 tarballs match the pinned sums byte for byte. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Atu9S5a3hWzrBBhKLsQFFX
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix Merge Risk:
|
Description
The nightly Deploy container images workflow has failed three nights in a row (2026-11-18, -19, -20; runs 44214412845, 44435430923, 44652120614). It fails in the
basestage ofdockerfiles/Dockerfile:Root cause:
github.com/microsoft/onnxruntimehas returned 404 since 2026-11-18 (#10946). #10947 added a hash-verified mirror fallback for the vcpkg overlay port's source archive, which fixed Build and Test and Release. The Dockerfile downloads Microsoft's prebuilt release tarball separately, and #10947 did not cover that download. So the container build still fails on develop at 6be4c55, after #10946 was closed.Change: the Dockerfile tries Microsoft's release URL first. If that fails, it downloads from PhotoPrism's mirror of the same release archives (
https://dl.photoprism.app/onnx/runtime/v<ver>/<name>.tgz), the same mirror #10947 uses. Each download must match the SHA256 already pinned in the Dockerfile. The version, the hashes and the rest of the step are unchanged. The loop is plain POSIX sh, because theRUNheredoc runs under/bin/sh.Why this is not just a way to make CI pass: the image still gets exactly the pinned ONNX Runtime 1.30.0 binaries:
onnxruntime-linux-x64-1.30.0.tgzfrom the mirror has sha256a5ed5a3c…b3fd, equal toONNXRUNTIME_SHA256_AMD64.onnxruntime-linux-aarch64-1.30.0.tgzfrom the mirror has sha256e16a27a8…e3da, equal toONNXRUNTIME_SHA256_ARM64.Once Microsoft's repository is back, the first URL succeeds and the mirror is never contacted.
How it was tested: I ran the
RUNstep's script underdashlocally, without Docker:ort.tgz: OK), and the archive is extracted. Theinclude/onnxruntime_cxx_api.handlib/libonnxruntime.sochecks pass.I did not run a full
docker buildxbuild. The container workflow on this branch, or the next nightly, is the end-to-end check.For maintainers to decide: #10946 says the choice of an alternative download source is a maintainer decision. This PR reuses the mirror that was already accepted for #10947. If you would rather host the tarballs on OpenMS infrastructure, the fallback URL is the only line to change.
Checklist
RUNstep as described above)AI use (see the OpenMS AI Policy)
Co-authored-by:trailer, and the description above explains the design intent and rationaleAn AI agent opened this PR from a scheduled nightly-CI check. A maintainer needs to review it before merging.
Generated by Claude Code
Summary by CodeRabbit