ci: add configuration for the proxy/mirror registry

This makes it possible to pull images from Docker Hub through the local
container image registry in the CI OpenShift deployment. The registry in
the CI is configured with the 'cephcsibot' account so that pulling
images is accounted towards the account, and not anonymous consumers
within the whole CentOS CI.

There should be no need to manually sync the images between the local
registry and Docker Hub anymore.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos
2020-11-23 14:20:46 +01:00
committed by mergify[bot]
parent 6a7e6c841f
commit 5ae8fb7c9b
7 changed files with 75 additions and 17 deletions

View File

@ -49,6 +49,8 @@ spec:
volumeMounts:
- name: container-images
mountPath: /var/lib/registry
- name: config
mountPath: /etc/docker/registry
- name: htpasswd
mountPath: /auth
env:
@ -62,6 +64,9 @@ spec:
- name: container-images
persistentVolumeClaim:
claimName: ceph-csi-image-registry
- name: config
secret:
secretName: container-registry-config
- name: htpasswd
secret:
secretName: container-registry-auth