Using External Images in CI
ci-operator config only allows to reference
ImageStreamTags, it does not allow to specify arbitrary Docker pull specs. In order
to use external images, they need to be mirrored to the central CI registry.
Mirror Public Images
If the source image is open to the public, we can mirror the image by adding it into a mapping file in
core-services/image-mirroring/supplemental-ci-images folder of
openshift/release repository. The following line in the
mapping_supplemental_ci_images_ci file mirrors
registry.ci.openshift.org/ci/boskos:latest. The naming convention of the mapping file is
mapping_supplemental_ci_images_<namespace>, e.g., the images in
mapping_supplemental_ci_images_ci are mirrored to the namespace
The hourly periodic job
periodic-image-mirroring-supplemental-ci-images mirrors all the images defined in the mapping files.
Once it is mirrored, you can use the image like this:
Mirror Private Images
We cannot reuse the existing job as the keys in the credentials config are registries and we might have to set up multiple credentials for the same registry.