skillhub/docs/RISCV64.md
FenjuFu e1e6f092f7
fix(deps): pin patched nginx runtime (#1105)
* fix(deps): pin nginx runtime to 1.31.9

Signed-off-by: FenjuFu <92919259+FenjuFu@users.noreply.github.com>

* fix(deps): pin patched nginx runtime

Signed-off-by: FenjuFu <92919259+FenjuFu@users.noreply.github.com>

* fix(deploy): use curl for Debian nginx compose health checks

Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>

---------

Signed-off-by: FenjuFu <92919259+FenjuFu@users.noreply.github.com>
Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
Co-authored-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
2026-11-19 21:24:25 +08:00

59 lines
2.7 KiB
Markdown

# RISC-V (`linux/riscv64`) support
## Current scope
RISC-V support is incremental. The SkillHub server and web images have
`linux/riscv64` build and runtime paths. The security scanner and the complete
Docker Compose deployment are not yet supported on RISC-V.
| Component | `linux/riscv64` status | Notes |
| --- | --- | --- |
| `skillhub-server` | Supported | The architecture-neutral Java 21 JAR is built on the Buildx host and copied into the target-architecture Eclipse Temurin runtime. |
| `skillhub-web` | Supported | Static assets are built on the Buildx host and served by a target-architecture Nginx runtime. |
| `skillhub-scanner` | Not yet verified | Its Python dependency tree still needs a native-extension and runtime audit. |
| PostgreSQL 16 and Redis 7 | Upstream images available | Keep these images explicitly pinned and verify them on the target board before production use. |
| Complete Compose stack | Unsupported | `compose.release.yml` starts the unverified scanner, so do not deploy it unchanged on RISC-V. |
## Build the supported images
Buildx can create both images from an AMD64 or ARM64 host. Register a RISC-V
QEMU handler before running these commands when the host is not RISC-V:
```bash
docker run --privileged --rm tonistiigi/binfmt --install riscv64
docker buildx create --use --name skillhub-riscv64
docker buildx build \
--platform linux/riscv64 \
--file server/Dockerfile \
--tag skillhub-server:riscv64 \
--load \
server
docker buildx build \
--platform linux/riscv64 \
--file web/Dockerfile \
--tag skillhub-web:riscv64 \
--load \
web
```
The release workflow publishes `linux/amd64`, `linux/arm64`, and
`linux/riscv64` variants for `skillhub-server` and `skillhub-web`. The scanner
remains limited to its existing AMD64/ARM64 platform list.
The Web runtime uses the patched stable `nginx:1.30.7-trixie` image, including
for the other supported architectures. At the November 19, 2026 registry check,
the new `nginx:1.31.9-alpine` tag did not yet contain a RISC-V manifest even
though the upstream source tag list mentioned RISC-V. Check the actual registry
platforms before changing this base; do not fall back to an unpatched image or
remove RISC-V from the release matrix to bypass a failed build. Debian includes
curl, which is used by the Web health check and proxy regression fixtures.
## Verification boundary
The pull-request workflow builds both supported target images, checks their OCI
architecture metadata, and executes the Java and Nginx runtimes under RISC-V
emulation. This is a component-image guardrail, not a full-stack integration
test. A native RISC-V smoke test with PostgreSQL, Redis, object storage, and a
verified scanner remains required before claiming complete deployment support.