Mounts agents router and schema init, adds VM123 checks, chat copilot, Desk UI module, isolated docker-compose staging on ports 8180/8192, and full spec documentation without touching production ports. Co-authored-by: Cursor <cursoragent@cursor.com>
62 lines
1.8 KiB
Markdown
62 lines
1.8 KiB
Markdown
# Quickstart — Spec 029 Agentic Ops
|
|
|
|
## Staging (homologação — portas 8180/8192)
|
|
|
|
```bash
|
|
ssh root@10.10.10.122
|
|
cd /opt/ligbox-ops-platform-staging
|
|
git fetch && git checkout 029-agentic-ops-runbooks && git pull
|
|
cp .env.staging.example .env # ajustar tokens
|
|
docker compose -f docker-compose.agentic-staging.yml up -d --build
|
|
```
|
|
|
|
### Validar T0
|
|
|
|
```bash
|
|
curl -s http://10.10.10.122:8180/api/health | jq .
|
|
curl -s http://10.10.10.122:8180/api/v1/agents/health | jq .
|
|
# Esperado: tier t1 se AGENTIC_LLM_ENABLED=true e Ollama OK
|
|
|
|
curl -s -X POST http://10.10.10.122:8180/api/v1/agents/internal/tick \
|
|
-H "X-Ops-Internal-Token: SEU_TOKEN" | jq .
|
|
```
|
|
|
|
### Validar T1 (Ollama VM123)
|
|
|
|
```bash
|
|
ssh root@10.10.10.123 'curl -s http://127.0.0.1:11434/api/tags'
|
|
# Esperado: qwen2.5:7b-instruct, nomic-embed-text
|
|
```
|
|
|
|
### Validar chat (com JWT Desk)
|
|
|
|
```bash
|
|
TOKEN=$(curl -s -X POST http://10.10.10.122:8180/api/v1/auth/login \
|
|
-H 'Content-Type: application/json' \
|
|
-d '{"username":"root","password":"..."}' | jq -r .access_token)
|
|
|
|
curl -s -X POST http://10.10.10.122:8180/api/v1/agents/chat \
|
|
-H "Authorization: Bearer $TOKEN" \
|
|
-H 'Content-Type: application/json' \
|
|
-d '{"question":"Como validar FOSSBilling na VM123?"}' | jq .
|
|
```
|
|
|
|
## Checklist homologação
|
|
|
|
- [ ] `/api/v1/agents/health` → 200, ollama true
|
|
- [ ] Tick interno → runs para 9 cenários
|
|
- [ ] Findings gravados em SQLite staging
|
|
- [ ] E-mail teste em finding critical (opcional)
|
|
- [ ] UI Agentic Ops no Desk staging `:8192`
|
|
- [ ] Chat copiloto responde pt-BR
|
|
- [ ] Produção `:8080` intacta (versão anterior)
|
|
|
|
## Promover produção
|
|
|
|
Somente após checklist:
|
|
|
|
```bash
|
|
cd /opt/ligbox-ops-platform
|
|
git checkout 029-agentic-ops-runbooks && git pull
|
|
docker compose -f docker-compose.mvp.yml up -d --build api worker frontend
|
|
```
|