-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.test
More file actions
40 lines (32 loc) · 1.05 KB
/
Dockerfile.test
File metadata and controls
40 lines (32 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Test runner image for iris-pgwire integration and contract tests
# Constitutional Principle II: Real IRIS instances required, no mocks
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy source code first (required for pyproject.toml editable install)
COPY src/ /app/src/
COPY tests/ /app/tests/
COPY pyproject.toml /app/
# Install Python dependencies (with fallback)
RUN pip install --no-cache-dir -e ".[dev]" || \
pip install --no-cache-dir \
pytest>=7.0.0 \
pytest-asyncio>=0.21.0 \
pytest-timeout>=2.1.0 \
pytest-cov>=4.0.0 \
intersystems-irispython>=3.2.0 \
pydantic>=2.0.0 \
pyyaml>=6.0.0 \
structlog>=23.0.0 \
opentelemetry-api>=1.20.0 \
opentelemetry-sdk>=1.20.0 \
docker>=7.0.0
# Set Python path
ENV PYTHONPATH=/app/src
# Create test results directory
RUN mkdir -p /app/test-results
# Default command runs all tests
CMD ["pytest", "tests/", "-v", "--tb=short"]