2023-06-21 07:06:51 +00:00
|
|
|
FROM quay.io/centos/centos:stream9
|
2020-04-01 11:35:10 +00:00
|
|
|
|
2023-06-27 11:35:55 +00:00
|
|
|
# FIXME #3946: jenkins-job-builder does not seem to work with urllib3 2.x
|
2020-04-01 11:35:10 +00:00
|
|
|
RUN true \
|
2022-02-03 15:26:53 +00:00
|
|
|
&& dnf -y install git make python3-pip \
|
2023-06-27 11:35:55 +00:00
|
|
|
&& pip3 install jenkins-job-builder 'urllib3>=1.26.15,<2' \
|
2022-02-03 15:26:53 +00:00
|
|
|
&& dnf -y clean all \
|
2020-04-01 11:35:10 +00:00
|
|
|
&& true
|
|
|
|
|
|
|
|
ENV MAKE_TARGET=${MAKE_TARGET:-test}
|
|
|
|
|
|
|
|
# Environment that needs to be set before executing checkout-repo.sh
|
|
|
|
# ENV GIT_REPO=https://github.com/ceph/ceph-csi
|
|
|
|
# ENV GIT_REF=ci/centos
|
|
|
|
ADD checkout-repo.sh /opt/build/
|
|
|
|
|
|
|
|
# make WORKDIR writable, otherwise git checkout fails
|
|
|
|
RUN chmod ugo=rwx /opt/build
|
|
|
|
|
|
|
|
ENV HOME=/opt/build
|
|
|
|
WORKDIR /opt/build
|
|
|
|
|
|
|
|
CMD ["sh", "-c", "./checkout-repo.sh && make -C deploy ${MAKE_TARGET}"]
|