This repo is dedicated to mirror images from other organizations into Rancher. There are no packaging changes or changes in the layers of these images.
The list is maintained in the images-list
file, which is structured with the following format...
<original-image-name> <rancher-image-name> <image-tag>
The basic rancher-image-name
structure is mirrored-<org>-<repo>
and here is an example...
banzaicloud/logging-operator rancher/mirrored-banzaicloud-logging-operator 3.7.0
Images are mirrored using the scripts/image-mirror.sh
script.
When adding new images to the repo, please indicate so in the pull request.
An EIO team member or manager will need to create the repo in DockerHub as well as add the automatedcipublisher
as a team member in DockerHub with write
access in order for the images to be automatically pushed.
Do not update the tag in the images-list
file for an updated image to be pulled/pushed. Add an additional entry with the new tag.
You can use the following commands/scripts to add a tag to an existing image. Make sure the IMAGES
environment variable is set to the image(s) you want to add a tag to, and the TAGS
environment variable is set to the tags you want to add to the images. The script will check:
- If the image provided is already existing, else it will fail because it only supports adding tags to existing images.
- If there is only one mapping in
images-list
, else it will fail because it cannot determine what mapping to use. - If the tag for the image is not already present, else it will fail because it is not new.
- If the tag for the image exists, else it will fail as it cannot be mirrored.
After everything is successfull, it will add the tag to images-list
. If all images and tags are added, it will sort images-list
.
See an example below:
IMAGES=quay.io/coreos/etcd TAGS=v3.4.20 make add-tag-to-existing-image.sh
Optionally, you can also check if the newly added image tag exists (this will also be run in Drone):
make check-new-images-exist.sh
You can use the Add tag to existing image workflow to provide a comma separated list of existing images and to be added tags, and it will create a pull request automatically with the changes. See Using scripts what this does in detail.
Example inputs:
Images: quay.io/cilium/cilium,quay.io/cilium/operator-aws,quay.io/cilium/operator-azure,quay.io/cilium/operator-generic
Tags: v1.12.1