latest refactoring
Some checks failed
validation / verify (push) Failing after 10s

This commit is contained in:
2026-10-06 20:22:37 +01:00
parent e94b2493e7
commit 7ee49ab352
414 changed files with 15768 additions and 3896 deletions

View File

@@ -28,7 +28,8 @@ FROM python:3.12-slim
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONPATH=/app \
PORT=8080
A2A_HOST=0.0.0.0 \
A2A_PORT=8080
WORKDIR /app
@@ -40,28 +41,25 @@ RUN groupadd -g 10001 appgroup && \
COPY --from=builder /install /usr/local
COPY --from=builder /usr/local/bin/terraform /usr/local/bin/terraform
# Copy application source, skills, and configuration
# Copy the engine, role files, provider bundles and Skills.
COPY app/ ./app/
COPY agents/ ./agents/
COPY providers/ ./providers/
COPY skills/ ./skills/
COPY eval/ ./eval/
COPY docs/ ./docs/
COPY deliverables/ ./deliverables/
COPY terraform/ ./terraform/
COPY workflow.yaml ./
COPY requirements.yaml ./
RUN chown -R appuser:appgroup /app
# Executions write their outputs under deliverables/executions/<execution_id>/.
RUN mkdir -p deliverables && chown -R appuser:appgroup /app
USER appuser
# 8080: legacy REST app (removed in increment 9). 8000: A2A server with pre-approved /generate:
# python -m app.a2a.server
EXPOSE 8080 8000
# The A2A server: JSON-RPC at /a2a, the agent card, /health and pre-approved /generate.
# Set A2A_PUBLIC_URL to the address callers reach, so the agent card advertises it.
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8080/health')" || exit 1
# /health answers once the provider bundle and remote MCP catalogs have loaded.
HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=3 \
CMD python -c "import os, urllib.request; urllib.request.urlopen(f'http://localhost:{os.environ[\"A2A_PORT\"]}/health')" || exit 1
CMD ["python", "-m", "app.agent", "--host", "0.0.0.0", "--port", "8080"]
CMD ["python", "-m", "app.main"]