Skip to content

Commit 95f680c

Browse files
Jeny Sadadianuclearcat
authored andcommitted
Fragment for pipeline cron service
Signed-off-by: Jeny Sadadia <jeny.sadadia@collabora.com>
1 parent 15e5305 commit 95f680c

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
USER kernelci
2+
ARG pipeline_url=https://github.com/kernelci/kernelci-pipeline.git
3+
ARG pipeline_rev=main
4+
RUN git clone --depth=1 $pipeline_url /home/kernelci
5+
WORKDIR /home/kernelci
6+
RUN git fetch origin $pipeline_rev
7+
RUN git checkout FETCH_HEAD
8+
ENV KCI_VER_PIPELINE=$pipeline_rev
9+
10+
USER root
11+
12+
# Install kci-dev package
13+
RUN pip install git+https://github.com/kernelci/kci-dev.git@main
14+
15+
# Install cron package
16+
RUN apt-get update && apt-get install -y cron
17+
18+
# Install requirements to run pipeline cron service
19+
RUN pip3 install -r requirements-cron.txt
20+
21+
# Register the cron job
22+
RUN cp /home/kernelci/tools/cron/maestro-validate-cron-job.txt /etc/cron.d/maestro-validate-cron-job
23+
RUN chmod 0644 /etc/cron.d/maestro-validate-cron-job
24+
RUN crontab /etc/cron.d/maestro-validate-cron-job
25+
26+
CMD ["cron", "-f"]

0 commit comments

Comments
 (0)