Skip to content

ci(ci): hermetic AI report deployment profile and Ollama entrypoint - #362

Merged
GiZano merged 2 commits into
mainfrom
chore/ci-ai-profile
Aug 5, 2026
Merged

ci(ci): hermetic AI report deployment profile and Ollama entrypoint#362
GiZano merged 2 commits into
mainfrom
chore/ci-ai-profile

Conversation

@GiZano

@GiZano GiZano commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Summary

Deploys the on-premise AI Emergency Report stack (v1.2.0) while keeping CI fully hermetic — the default docker compose up and CI pipelines never pull a model.

Changes

  • docker-compose.yml — adds ollama (local LLM, model auto-pulled on startup, healthcheck) and ai-worker (dedicated report consumer) services, both gated behind the new ai compose profile. The main worker service receives AI_REPORT_ENABLED.
  • init-scripts/ollama-entrypoint.sh — serves Ollama, waits for readiness, then pulls $OLLAMA_MODEL (default llama3.2:1b).
  • backend-ci.yml — sets AI_REPORT_ENABLED=false for CI so the stress/integration pipeline avoids orphan report enqueueing.

Why a profile?

Pulling llama3.2:1b (~1.8 GB) on every CI run is slow and heavy. The ai profile keeps default startup lightweight; operators opt in via docker compose --profile ai up -d.

Verification

  • docker compose config --quiet → valid

@GiZano
GiZano requested a review from riccardo0731 as a code owner August 5, 2026 14:35
@GiZano
GiZano force-pushed the chore/ci-ai-profile branch from 8758ae8 to 1e2c961 Compare August 5, 2026 21:40
@sonarqubecloud

sonarqubecloud Bot commented Aug 5, 2026

Copy link
Copy Markdown

@GiZano
GiZano merged commit 86534eb into main Aug 5, 2026
8 checks passed
@GiZano
GiZano deleted the chore/ci-ai-profile branch August 5, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant