e80dee1b5a
T1 of PLAN-feature-parity (§2.1, 2.2, 2.4, 2.12): one design per concern. - Non-TEA from rebuild: CaCu/CaMa (recurrence scenarios, factors, model titles in core.models, escenario-clinico on RiskAssessment, CaMa procedures and recurrence conditions), Conectar source types (core.sources), files spooled straight to their table (persistance.files, nodes keep/discard), promotion reports set by the site (registry.required, retired versions still refused), backups, deploy and delivery. - TEA backend from tea/parity: core/tea/follow_up.py, Persistance eeg.py and the TEA reads in persistance/fhir.py. Deleted: rebuild's core/tea/association.py, its TEA Patient extensions and code systems in core/fhir.py (tea-case, tea-eeg-status, tea-eeg-alteration, _tea_listed), its TEA follow-up read, the duplicate FOLLOW_UP_WINDOWS, and the tests of that code (test_tea_association, test_persistance_eeg_study, reference/tea/association.json). T6 adds route stage and case state to tea/parity's follow-up module. - core.models titles name the association by its registered name (ados2_association). - Execution: tea/parity's persistance.cluster/models.execution; the dask-worker image stays and syncs the app as is (no dask extra: Persistance depends on dask). - Auth: rebuild's users and sign-in; compose carries both env sets. - Tests: tea/parity's conftest (P7); capture_reference.py and the CaCu/CaMa hospital pipelines (only rebuild's page runner read them) stay deleted. CI keeps tea/parity's jobs. - uv.lock re-resolved.
33 lines
1.3 KiB
Docker
33 lines
1.3 KiB
Docker
# One Python image for the API, the Dagster webserver and the Dagster daemon.
|
|
FROM python:3.12-slim AS app
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends tesseract-ocr tesseract-ocr-spa ghostscript \
|
|
postgresql-client \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
COPY --from=ghcr.io/astral-sh/uv:0.12.21 /uv /bin/uv
|
|
ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy UV_PROJECT_ENVIRONMENT=/venv PATH=/venv/bin:$PATH
|
|
WORKDIR /app
|
|
COPY . .
|
|
# Optional extras a machine opts into (`--extra dask` where a Dask cluster runs the batches).
|
|
ARG EXTRAS=""
|
|
RUN uv sync --frozen --no-dev $EXTRAS
|
|
ENV ISSSTELEON_DATA=/data DAGSTER_HOME=/data/dagster DLT_DATA_DIR=/data/dlt
|
|
|
|
FROM app AS test
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends default-jre-headless \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
ADD --checksum=sha256:ed43c20ad40ba5c3bc724503a5af032715fe3c491620b766148e7c2361e6ecc1 \
|
|
https://github.com/synthetichealth/synthea/releases/download/v4.0.0/synthea-with-dependencies.jar \
|
|
/opt/synthea/synthea.jar
|
|
ENV SYNTHEA_JAR=/opt/synthea/synthea.jar
|
|
RUN uv sync --frozen
|
|
CMD ["pytest", "-q", "-rs"]
|
|
|
|
FROM app AS dask-worker
|
|
RUN useradd --uid 10001 --create-home dask
|
|
ENV OMP_NUM_THREADS=1 OPENBLAS_NUM_THREADS=1 MKL_NUM_THREADS=1
|
|
WORKDIR /home/dask
|
|
USER dask
|
|
CMD ["dask", "worker", "--help"]
|