Skip to content

Commit 6981944

Browse files
committed
Add runtime lifecycle commands and enhance deployment diagnostics
- Introduced `apply`, `status`, `destroy`, and `doctor` commands in CLI for managing deployment lifecycles. - Updated README with usage examples for new commands. - Enhanced single-machine scripts to support authentication tokens. - Added tests for new CLI commands and validation of environment variables.
1 parent 0fc48e5 commit 6981944

5 files changed

Lines changed: 612 additions & 4 deletions

File tree

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ What this does automatically:
9595
- `gpu.mode=required`: hard GPU requests/limits for Kubernetes and `gpus: all` for Compose.
9696
- `gpu.mode=off`: disables GPU behavior.
9797
- Plan output (`plan.json`) for CI/CD review and approvals.
98+
- Runtime lifecycle commands:
99+
- `apply` (render + apply manifests / compose up)
100+
- `status` (kubectl or compose status, plus single-machine artifact status)
101+
- `destroy` (kubectl delete / compose down)
102+
- `doctor` (preflight diagnostics for toolchain + rendered artifacts)
98103

99104
## Install
100105

@@ -141,6 +146,30 @@ poetry run refua-deploy render \
141146
--output-dir dist/public
142147
```
143148

149+
Apply rendered runtime:
150+
151+
```bash
152+
poetry run refua-deploy apply \
153+
--config deploy/public.yaml \
154+
--output-dir dist/public
155+
```
156+
157+
Check runtime status:
158+
159+
```bash
160+
poetry run refua-deploy status \
161+
--config deploy/public.yaml \
162+
--output-dir dist/public
163+
```
164+
165+
Run deployment diagnostics:
166+
167+
```bash
168+
poetry run refua-deploy doctor \
169+
--config deploy/public.yaml \
170+
--output-dir dist/public
171+
```
172+
144173
Run generated bootstrap script:
145174

146175
```bash
@@ -267,6 +296,10 @@ Generated artifacts follow existing Refua runtime contracts:
267296
- `REFUA_MCP_ALLOWED_HOSTS`
268297
- `REFUA_MCP_ALLOWED_ORIGINS`
269298
- `REFUA_MCP_AUTH_TOKENS`
299+
- Studio auth env vars (single-machine `.env.template` + `run-studio.sh`):
300+
- `REFUA_STUDIO_AUTH_TOKENS`
301+
- `REFUA_STUDIO_OPERATOR_TOKENS`
302+
- `REFUA_STUDIO_ADMIN_TOKENS`
270303
- GPU runtime env vars:
271304
- `REFUA_GPU_MODE`
272305
- `REFUA_GPU_VENDOR`

0 commit comments

Comments
 (0)