mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-02-16 23:59:29 +00:00
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:
parent
4ec5b6f045
commit
2f6400fe57
14
mirror/Containerfile
Normal file
14
mirror/Containerfile
Normal 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"]
|
31
mirror/mirror-buildconfig.yaml
Normal file
31
mirror/mirror-buildconfig.yaml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ImageStream
|
||||||
|
metadata:
|
||||||
|
name: mirror-images
|
||||||
|
labels:
|
||||||
|
app: mirror-images
|
||||||
|
spec:
|
||||||
|
tags:
|
||||||
|
- name: latest
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: BuildConfig
|
||||||
|
metadata:
|
||||||
|
name: mirror-images
|
||||||
|
labels:
|
||||||
|
app: mirror-images
|
||||||
|
spec:
|
||||||
|
runPolicy: Serial
|
||||||
|
source:
|
||||||
|
git:
|
||||||
|
uri: https://github.com/ceph/ceph-csi
|
||||||
|
ref: ci/centos
|
||||||
|
contextDir: mirror
|
||||||
|
strategy:
|
||||||
|
dockerStrategy:
|
||||||
|
dockerfilePath: Containerfile
|
||||||
|
output:
|
||||||
|
to:
|
||||||
|
kind: ImageStreamTag
|
||||||
|
name: mirror-images:latest
|
Loading…
Reference in New Issue
Block a user