ci: add mirror-images container image for automated mirroring

The ImageStream and BuildConfig use the Containerfile to build a
container image in the OpenShift registry so that automated image
mirroring can be configured.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos
2021-05-14 14:53:16 +02:00
committed by mergify[bot]
parent 4ec5b6f045
commit 2f6400fe57
2 changed files with 45 additions and 0 deletions

14
mirror/Containerfile Normal file
View File

@ -0,0 +1,14 @@
FROM centos:latest
RUN true \
&& yum -y install skopeo \
&& yum -y clean all \
&& true
ADD images.txt /opt/mirror/
ADD mirror-images.sh /opt/mirror/
ENV HOME=/opt/mirror
WORKDIR /opt/mirror
CMD ["./mirror-images.sh"]