Files
osmedeus/build/docker/docker-compose.canary.yaml
T
j3ssie ef00c176e5 feat: add canary tests for real-world scan workflows
- Add docker-compose.canary.yaml with multi-stage Dockerfile to build osmedeus from source and layer onto toolbox base, ensuring canary tests exercise current code not released binaries
- Implement three canary test scenarios (repo SAST scan, domain-lite reconnaissance, CIDR IP scanning) with lifecycle management (container startup/cleanup) and comprehensive assertions on filesystem artifacts and API records
- Add Makefile targets (test-canary-all, test-canary-repo, test-canary-domain, test-canary-ip, canary-up, canary-down) for granular test execution with configurable timeouts (20-60 minutes)
2026-02-10 17:25:15 +07:00

24 lines
524 B
YAML

services:
osm-canary:
build:
context: ../..
dockerfile: build/docker/Dockerfile.canary
container_name: osm-canary
hostname: osm-canary
volumes:
- canary-workspaces:/root/workspaces-osmedeus
- canary-data:/root/osmedeus-base
ports:
- "8002:8002"
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8002/health"]
interval: 10s
timeout: 5s
start_period: 30s
retries: 5
restart: "no"
volumes:
canary-workspaces:
canary-data: