Skip to content

Dockerfile: linux/arm64 takes the release's GB10 archive (SHA256_ARM64), linux/amd64 the x86-64 one as before - #882

Merged
juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:dgx-spark-q38-usab-spark-image
Oct 27, 2026
Merged

juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:dgx-spark-q38-usab-spark-image

Conversation

@juliankang4

Copy link
Copy Markdown
Collaborator

Dockerfile이 linux/arm64에서 릴리스의 GB10 아카이브를 받도록 해서, DGX Spark용 이미지를 만들 수 있게 합니다.

What and why

The server image can only be built for linux/amd64, so a DGX Spark user has to assemble their own. tools/release/Dockerfile now picks the release archive by TARGETARCH: linux/amd64 keeps the x86-64 archive and SHA256, and linux/arm64 takes the GB10 archive (bloomery-<version>-linux-aarch64-cuda-sm121a.tar.gz) and a new SHA256_ARM64 build argument. This change touches only the Dockerfile. The image workflow still builds linux/amd64, and a separate PR changes it to build arm64 as well.

Release notes: Added: The Dockerfile builds a linux/arm64 image (DGX Spark) from the release's GB10 archive.

Code shape

  • No second copy. The arm64 download and check reuse the existing Dockerfile step through one case.
  • Model code holds only architecture facts. No model code changes.
  • Dead code is gone.
  • No silent failure. An arm64 build without SHA256_ARM64, or for an unknown architecture, stops with a named error.
  • Comments state what is true now.
  • No relaxed gate. No band, tolerance or lint moved.
  • cargo fmt and cargo clippy are not affected: the change touches only tools/release/Dockerfile.

Duplication found or removed (path:line): none.

What I ran

The change is 71bf4bac9db730321e13f9c178bc0667682bb297 on 7908410cc846333bbbbf6a521257aaab0652e74a. The runs below used commit 88c0f6cf14e76a7256f2db6ed42242c4dd2be451, whose tools/release/Dockerfile is byte-identical to this head's.

The Dockerfile downloads from the GitHub release, and no release carries this change yet. For the check I built the GB10 archive from the commit with just release-build, and used a copy of the Dockerfile in which the curl line is replaced by a cp from the build context. The architecture case, the sha256sum -c check and the rest are the repository's.

just release-build
RELEASE-BUILD rc=0
release: bloomery-serve --version: bloomery-serve 0.3.10 (commit 88c0f6cf14e7)
08c6d1d5811280223603e64462fc34f0243217e57cbf5c11f19d1eecb7aa4eac  bloomery-0.3.10-linux-aarch64-cuda-sm121a.tar.gz

docker build --platform linux/arm64 --build-arg VERSION=0.3.10 --build-arg SHA256_ARM64=<archive sha256> .
DOCKER-BUILD rc=0
arch=arm64 os=linux

docker build ... --build-arg SHA256_ARM64=<wrong sha256> .
BAD-SHA build rc=1 (want nonzero)

In the image:
bloomery-serve 0.3.10 (commit 88c0f6cf14e7)

Then I started the server in the image through its entrypoint with --gpus all and an FP4-Local model file (-m <model> --port 8080). /health came up (image up=1), and two greedy /completion requests (n_predict 64, temperature 0) returned text. IMAGE-CHECK rc=0.

What I could not run: the download from a real release and the workflow, which only run in GitHub Actions. The linux/amd64 branch of the case was read against the old step (same asset name and SHA256) but not built.

Hardware

The machine is a DGX Spark with a GB10 card. Docker is 29.9.0 with runtimes nvidia runc io.containerd.runc.v2. The GB10 archive is bloomery-0.3.10-linux-aarch64-cuda-sm121a.tar.gz, 17609372 bytes.

AI help

AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.

@github-actions github-actions Bot added the tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo label Oct 27, 2026
@juliankang4 juliankang4 changed the title Docker image: linux/arm64 from the release's GB10 archive where the release carries one Dockerfile: linux/arm64 takes the release's GB10 archive (SHA256_ARM64), linux/amd64 the x86-64 one as before Oct 27, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: CLEAN: the Dockerfile change keeps the amd64 path as it was, adds an arm64 path, and both unset and unknown cases stop with a named error.

Checked

  • Duplicates: 0 new functions or types. The case reuses the one download and check step, so there is no second copy. The asset names match tools/release/publish.sh:51-52 and install.sh:37,48.
  • Complexity: no Rust file changed; dryer and crapper did not run.
  • Silent failure: 3 sites followed. An unknown TARGETARCH exits 1 with a message. An empty SHA256_ARM64 exits 1 with a message. A wrong sha fails sha256sum -c under set -eu; the author ran this case and got rc=1.
  • Tests: none added. This is a Dockerfile only; the author's arm64 build, bad-sha build and server start are the evidence.
  • Gates: no pin moved.
  • Failure scenarios built and blocked: (1) amd64 build with the old --build-arg SHA256: the amd64 arm sets sha="${SHA256}", the asset name is unchanged, so it builds as before. (2) The CI image build: .github/workflows/container.yml:67 uses docker/build-push-action, which is BuildKit and sets TARGETARCH. It passes only SHA256, and it builds amd64 only, so the empty SHA256_ARM64 is not reached. (3) The asset=… sha=… assignment on one line under set -eu: both variables persist in the shell for the later commands.
  • Escape catalog: C1 to C4 do not match. There is no pipe that hides an exit code, no heredoc, no process matching and no shadowing function.

Notes

  • gpu.json has evidence: false. The PR text has a DGX Spark and Docker line, but no nvidia-smi line and no just gate-* output. The change touches no crate, so this does not affect the verdict.
  • A legacy (non-BuildKit) docker build does not set TARGETARCH, and set -u then stops the build. It is a build-time stop and not a silent failure, so it is not a finding.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

@juliankang4

Copy link
Copy Markdown
Collaborator Author

The review is done and the contribution check passed, so I'm merging this.

@juliankang4
juliankang4 merged commit 08047d8 into midagedev:main Oct 27, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant