firegex/tests/Dockerfile.mcp
av0idd4rk 863422f202 Add authenticated MCP server and agent guide
Expose 28 tools with shared REST operations, role-scoped bearer authentication, revisions, durable retries, snapshots, jobs and timed rollback. Add Docker verification harnesses and setup/workflow documentation in docs/mcp.md and inst.md. Validated with 330 unit tests, two consecutive 25-case MCP/import runs, and restart recovery; the full upstream regression run remains incomplete.
2026-10-23 09:46:44 +03:00

16 lines
715 B
Docker

# Build from the production image so the tested API and datapath are exactly those
# shipped. Tests run as root in this container's isolated network namespace.
ARG FIREGEX_IMAGE=firegex-mcp:dev
FROM ${FIREGEX_IMAGE}
USER root
RUN dnf install -y gcc python3.14-devel curl tcpdump iptables procps-ng && dnf clean all
COPY tests/pyproject.toml /test/tests/pyproject.toml
COPY fgex-lib /test/fgex-lib
RUN python3 -m venv /test/tests/.venv && \
/test/tests/.venv/bin/pip install --group /test/tests/pyproject.toml:test && \
/test/tests/.venv/bin/pip install -e /test/fgex-lib
COPY tests /test/tests
COPY backend /test/backend
ENV FIREGEX_MCP_TEST_DB=/execute/db/mcp/control.sqlite3
ENV FIREGEX_TEST_DEPS_READY=1