ceph-csi/deploy/Dockerfile
Niels de Vos ed95c4aa78 ci: use CentOS Stream 8 for infra containers
The container images for Jenkins Job Builder and mirroring images were
still using the EOL CentOS 8 base image. Rebuilding those
container-images fails as the CentOS mirrors do not provide the
repositories for installing package anymore.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
2022-02-04 03:12:34 +00:00

23 lines
570 B
Docker

FROM quay.io/centos/centos:stream8
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}"]