Update README: local registry workflow, smart watch-loop, test commands, fix cost port

This commit is contained in:
2026-03-02 05:18:49 +00:00
parent 551a5c4158
commit 17ec444dcd

View File

@@ -10,20 +10,49 @@ Six products. One platform. Built for teams that ship.
| [drift](products/02-iac-drift-detection/) | 3002 | IaC Drift Detection | Go (agent), TypeScript/Fastify |
| [alert](products/03-alert-intelligence/) | 3003 | Alert Intelligence | TypeScript/Fastify |
| [portal](products/04-lightweight-idp/) | 3004 | Lightweight Service Catalog | TypeScript/Fastify, Meilisearch |
| [cost](products/05-aws-cost-anomaly/) | 3005 | AWS Cost Anomaly Detection | TypeScript/Fastify |
| [cost](products/05-aws-cost-anomaly/) | 3007 | AWS Cost Anomaly Detection | TypeScript/Fastify |
| [run](products/06-runbook-automation/) | 3006 | Runbook Automation | Rust (agent), TypeScript/Fastify |
## Quick Start
```bash
# 1. Start shared infra (Postgres, Redis, Meilisearch)
docker compose -f products/docker-compose.yml up -d postgres redis meilisearch
cd products/
# 2. Create databases and run migrations
./products/init-db.sh
# 1. Start shared infra (Postgres, Redis, Meilisearch, Registry)
docker compose up -d postgres redis meilisearch registry
# 3. Start all services
docker compose -f products/docker-compose.yml up -d
# 2. Build and push all images to local registry
./build-push.sh
# 3. Pull and start all services
docker compose pull && docker compose up -d
```
## Continuous Deployment (NAS)
Replace the old `watch` command with the smart watch loop:
```bash
watch -n300 'cd ~/services/dd0c/products && ./watch-loop.sh'
```
It detects which products changed, rebuilds only those, pushes to `localhost:5000`, and redeploys.
### Manual rebuild (single service)
```bash
./build-push.sh drift # Build + push just drift
docker compose pull drift && docker compose up -d drift
```
## Testing
```bash
# Smoke tests (health + auth + basic API)
./smoke-test.sh --base-url 192.168.86.11 --skip-rust
# Integration tests (CRUD flows, webhooks, executions, API keys)
./integration-test.sh
```
## Architecture