Skip to content

Commit a5bf899

Browse files
JosephJoseph
authored andcommitted
Add Docker setup for metrics collector and requirements file
1 parent f8fb249 commit a5bf899

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

docker/Dockerfile.metrics-collector

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Dockerfile for DORA Metrics Collector
2+
FROM python:3.9-slim
3+
4+
WORKDIR /app
5+
6+
# Copy requirements first for better layer caching
7+
COPY scripts/requirements.txt ./requirements.txt
8+
RUN pip install --no-cache-dir -r requirements.txt
9+
10+
# Copy scripts
11+
COPY scripts/ ./scripts/
12+
13+
# Set environment variables
14+
ENV PYTHONPATH=/app
15+
ENV METRICS_CONFIG_PATH=/app/config
16+
17+
# Create config directory
18+
RUN mkdir -p /app/config
19+
20+
# Default command
21+
CMD ["python", "-m", "scripts"]

scripts/requirements.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
boto3==1.26.137
2+
botocore==1.29.137
3+
requests==2.31.0
4+
PyYAML==6.0
5+
pandas==2.0.3
6+
python-dateutil==2.8.2
7+
matplotlib==3.7.2
8+
seaborn==0.12.2
9+
pytest==8.4.1
10+
pytest-mock==3.14.1
11+
pytest-cov==6.2.1

0 commit comments

Comments
 (0)