Update README: local registry workflow, smart watch-loop, test commands, fix cost port
This commit is contained in:
@@ -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 |
|
| [drift](products/02-iac-drift-detection/) | 3002 | IaC Drift Detection | Go (agent), TypeScript/Fastify |
|
||||||
| [alert](products/03-alert-intelligence/) | 3003 | Alert Intelligence | TypeScript/Fastify |
|
| [alert](products/03-alert-intelligence/) | 3003 | Alert Intelligence | TypeScript/Fastify |
|
||||||
| [portal](products/04-lightweight-idp/) | 3004 | Lightweight Service Catalog | TypeScript/Fastify, Meilisearch |
|
| [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 |
|
| [run](products/06-runbook-automation/) | 3006 | Runbook Automation | Rust (agent), TypeScript/Fastify |
|
||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# 1. Start shared infra (Postgres, Redis, Meilisearch)
|
cd products/
|
||||||
docker compose -f products/docker-compose.yml up -d postgres redis meilisearch
|
|
||||||
|
|
||||||
# 2. Create databases and run migrations
|
# 1. Start shared infra (Postgres, Redis, Meilisearch, Registry)
|
||||||
./products/init-db.sh
|
docker compose up -d postgres redis meilisearch registry
|
||||||
|
|
||||||
# 3. Start all services
|
# 2. Build and push all images to local registry
|
||||||
docker compose -f products/docker-compose.yml up -d
|
./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
|
## Architecture
|
||||||
|
|||||||
Reference in New Issue
Block a user