mirror of
https://github.com/Av0idD4rk/firegex.git
synced 2026-10-23 14:31:00 +00:00
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.
17 lines
745 B
Docker
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
|