-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
59 lines (48 loc) · 2.29 KB
/
Copy pathDockerfile.dev
File metadata and controls
59 lines (48 loc) · 2.29 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
# Dev environment container for AgentPMOWorkflow.
# Includes dotnet SDK, gh CLI, Node.js, and supercronic for scheduled report runs.
#
# Build context: AgentPMOWorkflow root
FROM mcr.microsoft.com/dotnet/sdk:8.0
# Install system dependencies: git, curl, Node.js, gh CLI
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
curl \
ca-certificates \
gnupg \
wget \
&& rm -rf /var/lib/apt/lists/*
# Install gh CLI
RUN mkdir -p -m 755 /etc/apt/keyrings \
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg \
| tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" \
| tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& apt-get update \
&& apt-get install -y gh \
&& rm -rf /var/lib/apt/lists/*
# Install Node.js (LTS) for Playwright tests if needed
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
# Install supercronic
ARG SUPERCRONIC_VERSION=v0.2.33
ARG SUPERCRONIC_ARCH=amd64
ENV SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/${SUPERCRONIC_VERSION}/supercronic-linux-${SUPERCRONIC_ARCH}
RUN curl -fsSLO "${SUPERCRONIC_URL}" \
&& chmod +x "supercronic-linux-${SUPERCRONIC_ARCH}" \
&& mv "supercronic-linux-${SUPERCRONIC_ARCH}" /usr/local/bin/supercronic
# Copy project into image (templates and skill are available at build time)
COPY . /workspaces/AgentPMOWorkflow
# Create output directory
RUN mkdir -p /output
# Create the crontab: run AgentPMOWorkflow every 5 minutes
RUN echo '*/5 * * * * dotnet fsi /workspaces/AgentPMOWorkflow/dashboard/repo-report.fsx >> /output/repo-report.log 2>> /output/repo-report-debug.log' \
> /etc/supercronic-crontab
# Environment variables (all overridable at runtime via docker-compose / .env)
ENV REPOS_PATH=/workspaces \
REPORT_OUTPUT_PATH=/output/repo-report.html \
REPO_BOOTSTRAP_PATH=/workspaces/AgentPMOWorkflow \
TZ=UTC
# See docker-compose.yml for volume definitions
CMD ["supercronic", "/etc/supercronic-crontab"]