-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
61 lines (52 loc) · 1.99 KB
/
Dockerfile
File metadata and controls
61 lines (52 loc) · 1.99 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Dockerfile for Flaky Tests in CI - Replication Package
# This image provides a complete environment for running the analysis scripts
FROM python:3.12-bookworm
# Install system dependencies
RUN apt-get update && \
apt-get install -y \
git \
openjdk-17-jdk \
texlive \
texlive-latex-extra \
texlive-fonts-recommended \
dvipng \
cm-super \
curl && \
curl -sL https://deb.nodesource.com/setup_18.x | bash && \
apt-get install -y nodejs && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /workspace
# Copy requirements first for better layer caching
COPY requirements.txt .
RUN pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Copy the entire project
COPY . .
# Install Playwright connector dependencies (for data collection, optional for analysis)
RUN cd src/connectors/playwright && npm install
# Set PYTHONPATH to include src directory
ENV PYTHONPATH=/workspace/src
# Create directories for data and outputs (will be mounted from host)
RUN mkdir -p /workspace/data/raw && \
mkdir -p /workspace/data/cache && \
mkdir -p /workspace/generated_figures
# Default command: show help
CMD ["bash", "-c", "echo 'Flaky Tests in CI - Replication Package' && \
echo '' && \
echo 'To run analysis scripts:' && \
echo ' docker run -v /path/to/data:/workspace/data <image> python -m analysis.RQ1' && \
echo '' && \
echo 'To get a shell:' && \
echo ' docker run -it -v /path/to/data:/workspace/data <image> bash' && \
echo '' && \
echo 'Available analysis scripts:' && \
echo ' - python -m analysis.dataset-data' && \
echo ' - python -m analysis.RQ1' && \
echo ' - python -m analysis.RQ2' && \
echo ' - python -m analysis.RQ3' && \
echo ' - python -m analysis.RQ4' && \
echo ' - python -m analysis.RQ5' "]
# Change to src directory for running analysis scripts
WORKDIR /workspace/src