firegex/tests/Dockerfile.mcp
av0idd4rk f214cecf9f Add one-command installer for the MCP fork
Bootstrap the fork through run.py, build Docker from source, and prepare standalone with a checksum-pinned native runtime plus the MCP backend and Python dependencies. Preserve existing installations and data, propagate Docker build failures, and update README/setup guides. Validation: 347 unit tests and a real standalone-rootfs MCP smoke test passed in Docker.
2026-10-23 10:11:37 +03:00

17 lines
745 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
COPY run.py firegex.sh /test/
ENV FIREGEX_MCP_TEST_DB=/execute/db/mcp/control.sqlite3
ENV FIREGEX_TEST_DEPS_READY=1