Add WASM frontend (Archipelagos) to production container #37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
PR #34 delivers a working production container with 20/20 services running. However,
hero_os_httpruns as a server binary without WASM frontend assets — the Dioxus/Archipelagos build is intentionally skipped.This issue tracks adding the WASM frontend build so
hero_os_httpserves the full Hero OS UI.Current State
forge.ourworld.tf/lhumina_code/hero_zero:prodhero_os_httpbinary runs but serves no frontend (WASM not built)hero_os_openrpcbackend works fineWhat Needs to Happen
1. Add WASM tooling to Dockerfile.prod builder stage
rustup target add wasm32-unknown-unknowncargo install wasm-pack --lockedapt-get install -y nodejs npm(if not already present)2. Build standalone WASM islands
hero_archipelagosreposcripts/build_standalone.sh --install/root/hero/share/hero_os/islands/3. Copy WASM assets to runtime image
4. Verify hero_os_http serves assets
crates/hero_os_http/src/main.rsfor static file servingHERO_OS_ASSETS,HERO_OS_ISLANDSBuild Impact
Approach
development(after PR #34 merges)development_production_containerif #34 not yet mergedAcceptance Criteria
References
hero_archipelagosrepo: 56+ Dioxus WASM island componentshero_osrepo: hero_os_http server + hero_os_openrpc backenddocker/build-services.shline 189: current skip comment