mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +00:00
a02b38ac27
CentOS Stream 8 does not provide a module named 'dataclasses'. It seems current versions of Jenkins Jobs Builder require that. Python 3.7 offers the module by default, so using a new base distribution with Python 3.9 has the module too. See-also: #3909 Signed-off-by: Niels de Vos <ndevos@ibm.com>
23 lines
570 B
Docker
23 lines
570 B
Docker
FROM quay.io/centos/centos:stream9
|
|
|
|
RUN true \
|
|
&& dnf -y install git make python3-pip \
|
|
&& pip3 install jenkins-job-builder \
|
|
&& dnf -y clean all \
|
|
&& 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}"]
|