ci / test (push) Successful in 27s
- ontology/know.yaml: 49 Klassen, 66 Beziehungen, 12 Vokabulare (72 Konzepte); erzeugt: know.ttl (OWL + SKOS), Ansicht aus viewer.html.tmpl - knaster.ontology: Modell + Prüfung, Export, Momentaufnahme der n8n-Workflows (nur GET; KNOW-Spezifikation aus dem Workflow-Code, Aufrufe inkl. Laufzeit- Operationen, direktes SQL), Abgleich, Übernahme von Entscheidungen - Service-Routine Schritt 8: Verstöße als Befunde, Ontologie-Änderungen als Vorschläge ontology_change (immer Freigabe); „ordne P-x <konzept> zu“; Entscheidungen in ontology_decisions, `knaster ontology apply` schreibt sie in die YAML (Version +1) - CLI: knaster ontology validate|export|snapshot|check|apply; knaster validate prüft Modell und Aktualität der Turtle-Datei - Gegen echten n8n-Export geprüft: neue Befunde B31–B33 (verified/confirmed, KAN ruft unbekannte Operation, MPA ordnet Projektereignisse nie ein) - SPEC-ontology, BETRIEB §6, Router-Image enthält die Ontologie Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
977 B
Docker
30 lines
977 B
Docker
# Router-Service (knaster). Build-Kontext: Repo-Wurzel.
|
|
FROM python:3.12-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1
|
|
WORKDIR /app
|
|
|
|
COPY core/pyproject.toml core/pyproject.toml
|
|
COPY core/src core/src
|
|
RUN pip install "./core[postgres]"
|
|
|
|
# Portable Konfiguration; standortspezifisches (sites/) kann per Volume überschrieben werden
|
|
COPY config config
|
|
COPY catalog catalog
|
|
COPY skills skills
|
|
COPY sites sites
|
|
COPY ontology ontology
|
|
|
|
ENV KNASTER_CONFIG_DIR=/app/config \
|
|
KNASTER_SKILLS_DIR=/app/skills \
|
|
KNASTER_SITE_DIR=/app/sites/knaster \
|
|
KNASTER_ONTOLOGY=/app/ontology/know.yaml \
|
|
KNASTER_DRY_RUN=true
|
|
|
|
RUN useradd --system --uid 10001 knaster
|
|
USER knaster
|
|
EXPOSE 8080
|
|
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
|
|
CMD python -c "import urllib.request,sys; sys.exit(0 if urllib.request.urlopen('http://127.0.0.1:8080/health', timeout=4).status==200 else 1)"
|
|
CMD ["knaster", "serve", "--host", "0.0.0.0", "--port", "8080"]
|