Runtime Deploy Oci
Overview
Deploy services/runtime-rs to OCI with consistent queue wiring and deterministic smoke checks.
Inputs
repo_root: repository path containingscripts/runtime/deploy_oci.shhost: ssh target, usuallyubuntu@100.86.128.122- Optional
--dry-runduring planning/review
Quick Start
- Execute helper:
bash "<path-to-skill>/scripts/deploy_runtime_with_server_queue.sh" "ubuntu@100.86.128.122"
- Rehearse without deploy:
bash "<path-to-skill>/scripts/deploy_runtime_with_server_queue.sh" --dry-run "ubuntu@100.86.128.122"
Deployment Workflow
- Run local preflight.
cargo check --manifest-path services/runtime-rs/Cargo.tomlnpm run test:integration:runtime(optional but recommended for live endpoint confidence)
- Read queue URL from server systemd config.
- Prefer
RUNTIME_MRMS_SQS_QUEUE_URL; fallback to legacyMRMS_SQS_QUEUE_URL.
- Prefer
- Execute repo deploy script with resolved queue URL.
- Default behavior prefers local cross-compile and auto-falls back to remote when no cross tool is detected:
RUNTIME_MRMS_SQS_QUEUE_URL=<queue> scripts/runtime/deploy_oci.sh <host> - Explicit local cross-compile deploy:
RUNTIME_MRMS_SQS_QUEUE_URL=<queue> RUNTIME_DEPLOY_BUILD_MODE=local-cross scripts/runtime/deploy_oci.sh <host> - Explicit remote build deploy:
RUNTIME_MRMS_SQS_QUEUE_URL=<queue> RUNTIME_DEPLOY_BUILD_MODE=remote scripts/runtime/deploy_oci.sh <host>
- Default behavior prefers local cross-compile and auto-falls back to remote when no cross tool is detected:
- Confirm runtime service health on host and funnel URL.
/healthzreturnsok/v1/metareturnsready: trueandsqsEnabled: true
- Report deployment result with exact endpoint checks and status.
Bundled Resource
scripts/deploy_runtime_with_server_queue.sh- Resolve queue URL from remote service definition.
- Run deploy script using that queue URL.
- Perform local and remote smoke checks.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.