-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.test
More file actions
41 lines (31 loc) · 1.17 KB
/
Dockerfile.test
File metadata and controls
41 lines (31 loc) · 1.17 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
41
# Dockerfile for Open Orchestrator test environment
# Provides isolated environment with all dependencies for running tests
FROM python:3.11-slim
# Install system dependencies required for testing
RUN apt-get update && apt-get install -y \
git \
tmux \
curl \
&& rm -rf /var/lib/apt/lists/*
# Set up Python environment
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1
# Create workspace directory
WORKDIR /workspace
# Copy dependency files first for better caching
COPY pyproject.toml ./
# Install Python dependencies including dev dependencies
RUN pip install --upgrade pip && \
pip install -e ".[dev]"
# Configure git for test environment
RUN git config --global user.email "test@example.com" && \
git config --global user.name "Test User" && \
git config --global init.defaultBranch main
# Create directories for test artifacts
RUN mkdir -p /workspace/htmlcov /workspace/.pytest_cache
# Set working directory
WORKDIR /workspace
# Default command runs the full test suite with coverage
CMD ["pytest", "-v", "--cov=src/open_orchestrator", "--cov-report=term-missing", "--cov-report=html"]