# Runtime Deploy Oci

> Deploy the Rust runtime service to the OCI host using the repository deploy script, reusing the server's existing SQS queue URL to avoid configuration drift. Use when a user asks to deploy runtime changes, restart runtime on OCI, or perform post-deploy health/meta validation. Use when this capability is needed.

- Skill: `tomevault-io/runtime-deploy-oci` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/runtime-deploy-oci`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/runtime-deploy-oci/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/runtime-deploy-oci

---


# Runtime Deploy Oci

## Overview

Deploy `services/runtime-rs` to OCI with consistent queue wiring and deterministic smoke checks.

## Inputs

- `repo_root`: repository path containing `scripts/runtime/deploy_oci.sh`
- `host`: ssh target, usually `ubuntu@100.86.128.122`
- Optional `--dry-run` during 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

1. Run local preflight.
   - `cargo check --manifest-path services/runtime-rs/Cargo.toml`
   - `npm run test:integration:runtime` (optional but recommended for live endpoint confidence)
2. Read queue URL from server systemd config.
   - Prefer `RUNTIME_MRMS_SQS_QUEUE_URL`; fallback to legacy `MRMS_SQS_QUEUE_URL`.
3. 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>`
4. Confirm runtime service health on host and funnel URL.
   - `/healthz` returns `ok`
   - `/v1/meta` returns `ready: true` and `sqsEnabled: true`
5. 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](https://tomevault.io/claim/andyfangdz) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-15 -->

