File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"]
You can’t perform that action at this time.
0 commit comments