Skip to content

ci(release): publish multi-arch Docker image (amd64 + arm64) - #242

Merged
lyonzin merged 1 commit into
lyonzin:masterfrom
viniciussantos45:ci/docker-multiarch
Oct 14, 2026
Merged

lyonzin merged 1 commit into
lyonzin:masterfrom
viniciussantos45:ci/docker-multiarch

Conversation

@viniciussantos45

@viniciussantos45 viniciussantos45 commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

ghcr.io/lyonzin/knowledge-rag is currently published for linux/amd64 only (verified via the registry manifest for :latest). Users on Apple Silicon or ARM servers have to run it under --platform linux/amd64 emulation, which is slow for ONNX embedding/reranking.

This PR makes the release workflow publish a multi-arch manifest:

  • Adds docker/setup-qemu-action@v4 before buildx
  • Sets platforms: linux/amd64,linux/arm64 on docker/build-push-action

Compatibility

No Dockerfile changes needed: python:3.13-slim is multi-arch, and the runtime deps (chromadb, onnxruntime via fastembed) ship aarch64 wheels.

Notes

  • The arm64 leg builds under QEMU, so the release Docker job will take longer (the model pre-download step runs emulated). If this becomes a bottleneck, it can be split into native ubuntu-24.04-arm runner jobs merged with docker buildx imagetools create.
  • Takes effect on the next tagged release; existing tags stay amd64-only.

Test plan

  • Next release: docker buildx imagetools inspect ghcr.io/lyonzin/knowledge-rag:latest lists both linux/amd64 and linux/arm64
  • docker run ghcr.io/lyonzin/knowledge-rag:latest starts natively on an arm64 host

Summary by CodeRabbit

  • New Features
    • Docker releases are now available for both x86-64 and ARM 64-bit systems, expanding compatibility across supported hardware.

The GHCR image was built only for linux/amd64, forcing Apple Silicon and
ARM server users into slow QEMU emulation. Add setup-qemu-action and
build for linux/amd64,linux/arm64 so the manifest list covers both.
@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bae6c680-5edc-4df8-8f5f-6d47819deed5
📥 Commits

Reviewing files that changed from the base of the PR and between 0717e3c and 8e71da9.

📒 Files selected for processing: 1
  • .github/workflows/release.yml

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

📝 Walkthrough

The release workflow now sets up QEMU and configures Docker builds for both linux/amd64 and linux/arm64.

Changes: Docker release workflow

Layer / File(s) Summary
Configure multi-platform Docker builds
.github/workflows/release.yml
The Docker publishing job sets up QEMU before Buildx and builds images for linux/amd64 and linux/arm64.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to 8e71d

The release workflow now requests amd64 and arm64 images, extending image availability to ARM users. No concrete architecture blocker was found in the inspected build path; an ARM64 build and runtime check remain outstanding, but no demonstrated issue currently blocks merging.

Pre-merge checks: Passed 5
Passed Passed checks: 5 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: publishing multi-architecture Docker images for amd64 and arm64.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lyonzin
lyonzin merged commit 639e357 into lyonzin:master Oct 14, 2026
37 checks passed
@lyonzin lyonzin mentioned this pull request Oct 25, 2026
1 task done
lyonzin added a commit that referenced this pull request Oct 25, 2026
Patch release. Fixes the startup crash on every fresh install and every
new data directory since v4.10.0 (#248, #252), makes state-file writes
robust on Windows and stops reindex_documents from reporting a refused
run as started (#249). Also ships #236 and the multi-arch Docker image
from #242.

- pyproject.toml: 4.11.0 -> 4.11.1
- mcp_server/__init__.py: __version__ -> 4.11.1
- npm/package.json: 4.11.0 -> 4.11.1
- CHANGELOG.md: Unreleased promoted to v4.11.1 with highlights and credits
- .github/api-surface-baseline.json: regenerated with --snapshot. Additive
  only: 8 modules and 5 methods added since the 2026-08-10 snapshot, none
  removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
lyonzin pushed a commit that referenced this pull request Oct 25, 2026
The GHCR image was built only for linux/amd64, forcing Apple Silicon and
ARM server users into slow QEMU emulation. Add setup-qemu-action and
build for linux/amd64,linux/arm64 so the manifest list covers both.
lyonzin added a commit that referenced this pull request Oct 25, 2026
Patch release. Fixes the startup crash on every fresh install and every
new data directory since v4.10.0 (#248, #252), makes state-file writes
robust on Windows and stops reindex_documents from reporting a refused
run as started (#249). Also ships #236 and the multi-arch Docker image
from #242.

- pyproject.toml: 4.11.0 -> 4.11.1
- mcp_server/__init__.py: __version__ -> 4.11.1
- npm/package.json: 4.11.0 -> 4.11.1
- CHANGELOG.md: Unreleased promoted to v4.11.1 with highlights and credits
- .github/api-surface-baseline.json: regenerated with --snapshot. Additive
  only: 8 modules and 5 methods added since the 2026-08-10 snapshot, none
  removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants