Mirroring IBM Storage Scale images
Mirror the IBM Storage Scale images to your enterprise registry.
About this task
For more reference information, see https://www.ibm.com/docs/en/scalecontainernative?topic=planning-air-gapped-installs.
Procedure
-
Log in to the IBM Entitled Container Registry using the IBM entitlement key:
docker login cp.icr.io -u cp -p <your entitlement key>Note: Ensure that your entitlement key for IBM Storage Fusion HCI System contains the correct entitlement.Set the following environment variables:export LOCAL_ISF_REGISTRY="<Your enterprise registry host>:<port>" export LOCAL_ISF_REPOSITORY="<Your image path>" export TARGET_PATH="$LOCAL_ISF_REGISTRY/$LOCAL_ISF_REPOSITORY" echo "$TARGET_PATH"Note: Port is a non-mandatory value when setting theLOCAL_ISF_REGISTRYvariable. You can ignore this if your enterprise registry is accessible and has a secure connection.Sample value for without port:export LOCAL_ISF_REGISTRY="registryhost.com"See the following sample values:export LOCAL_ISF_REGISTRY="registryhost.com:443" export LOCAL_ISF_REPOSITORY="fusion-mirror"LOCAL_ISF_REGISTRYis your entitlement registry.LOCAL_ISF_REPOSITORYis the image path in which you want to mirror the images. You can choose your own repository paths. For example, hci-2.7.2/isf or hci-2.7.2. - Run the command to login to the Docker registry with your enterprise registry
credentials.
docker login $LOCAL_ISF_REGISTRY -u <your enterprise registry username> -p <your enterprise registry password> - From the mirroring host, run the following copy command to copy IBM Storage Scale images to the host: Note: Make sure that you are logged in to the source and destination repositories through docker login command.
skopeo copy --all --preserve-digests docker://icr.io/cpopen/ibm-spectrum-scale-operator@sha256:ffa9c4f7f43d8ac142c271780f005e32d0d40db77044fce6a153ddfe37974d6b docker://$TARGET_PATH/ibm-spectrum-scale-operator@sha256:ffa9c4f7f43d8ac142c271780f005e32d0d40db77044fce6a153ddfe37974d6b skopeo copy --all --preserve-digests docker://cp.icr.io/cp/spectrum/scale/erasure-code/ibm-spectrum-scale-daemon@sha256:d6c8ac07e6d3ad869dbe191cd317a7fa973dc968c5e0eaae4b88943af3c66152 docker://$TARGET_PATH/erasure-code/ibm-spectrum-scale-daemon@sha256:d6c8ac07e6d3ad869dbe191cd317a7fa973dc968c5e0eaae4b88943af3c66152 skopeo copy --all --preserve-digests docker://cp.icr.io/cp/spectrum/scale/ibm-spectrum-scale-core-init@sha256:f85a1e4153aa9ef91c895a3e5f73b76903e760a26c75a3ecf077b71e6d381906 docker://$TARGET_PATH/ibm-spectrum-scale-core-init@sha256:f85a1e4153aa9ef91c895a3e5f73b76903e760a26c75a3ecf077b71e6d381906 skopeo copy --all --preserve-digests docker://cp.icr.io/cp/spectrum/scale/ibm-spectrum-scale-gui@sha256:e0f2a5959057d8d6b16802f9a60bfc51de04167f27d92d85eeeabf7c53c86e4e docker://$TARGET_PATH/ibm-spectrum-scale-gui@sha256:e0f2a5959057d8d6b16802f9a60bfc51de04167f27d92d85eeeabf7c53c86e4e skopeo copy --all --preserve-digests docker://cp.icr.io/cp/spectrum/scale/postgres@sha256:b2f06ce12103bedbc0a49ae4ffff062d90824e0f45462de712f66952679f7670 docker://$TARGET_PATH/postgres@sha256:b2f06ce12103bedbc0a49ae4ffff062d90824e0f45462de712f66952679f7670 skopeo copy --all --preserve-digests docker://cp.icr.io/cp/spectrum/scale/ubi-minimal@sha256:c8c7a06ce1c5fa23c1cbd7a0fd891eacd099bc232aa9985ddb183cfe98d1deaf docker://$TARGET_PATH/ubi-minimal@sha256:c8c7a06ce1c5fa23c1cbd7a0fd891eacd099bc232aa9985ddb183cfe98d1deaf skopeo copy --all --preserve-digests docker://cp.icr.io/cp/spectrum/scale/ibm-spectrum-scale-pmcollector@sha256:bde39274681ae0f3924c77283c120d158174a404f88e0e5913a18d1e0b269d35 docker://$TARGET_PATH/ibm-spectrum-scale-pmcollector@sha256:bde39274681ae0f3924c77283c120d158174a404f88e0e5913a18d1e0b269d35 skopeo copy --all --preserve-digests docker://cp.icr.io/cp/spectrum/scale/ibm-spectrum-scale-monitor@sha256:781f86296525f7519d212f8b1887d1a680157b5ebf55f3a989d76579778abb77 docker://$TARGET_PATH/ibm-spectrum-scale-monitor@sha256:781f86296525f7519d212f8b1887d1a680157b5ebf55f3a989d76579778abb77 skopeo copy --all --preserve-digests docker://cp.icr.io/cp/spectrum/scale/ibm-spectrum-scale-grafana-bridge@sha256:7b6d73301bc8b013208d0085e9d21031bea7e6376d5f2cf9834307e298379564 docker://$TARGET_PATH/ibm-spectrum-scale-grafana-bridge@sha256:7b6d73301bc8b013208d0085e9d21031bea7e6376d5f2cf9834307e298379564 skopeo copy --all --preserve-digests docker://cp.icr.io/cp/spectrum/scale/ibm-spectrum-scale-coredns@sha256:1ba4d51e896607c6f968f8df8e04ccfe7a71babd778838c9de040beda6bf1ff7 docker://$TARGET_PATH/ibm-spectrum-scale-coredns@sha256:1ba4d51e896607c6f968f8df8e04ccfe7a71babd778838c9de040beda6bf1ff7 skopeo copy --all --preserve-digests docker://icr.io/cpopen/ibm-spectrum-scale-must-gather@sha256:39769327dc2a2f276612d79f4b865681d6dd366b78c0760446e7957def6a64f1 docker://$TARGET_PATH/ibm-spectrum-scale-must-gather@sha256:39769327dc2a2f276612d79f4b865681d6dd366b78c0760446e7957def6a64f1 skopeo copy --all --preserve-digests docker://cp.icr.io/cp/spectrum/scale/ibm-spectrum-scale-ganesha@sha256:ce463af0bb935aa737146f6d0a6b34b7ab96b0d682f79d661b6f5c446ed95b45 docker://$TARGET_PATH/ibm-spectrum-scale-ganesha@sha256:ce463af0bb935aa737146f6d0a6b34b7ab96b0d682f79d661b6f5c446ed95b45 skopeo copy --all --preserve-digests docker://cp.icr.io/cp/spectrum/scale/ibm-spectrum-scale-stunnel@sha256:dd3001342f30219849f5ddfdaba5db64cc6280178c7e1ce62f2f13fdc9982754 docker://$TARGET_PATH/ibm-spectrum-scale-stunnel@sha256:dd3001342f30219849f5ddfdaba5db64cc6280178c7e1ce62f2f13fdc9982754 skopeo copy --all --preserve-digests docker://cp.icr.io/cp/spectrum/scale/ibm-spectrum-scale-pmsensors@sha256:69ae2d99018bd3ce064125677fbd8d00c3829fee64597a83b5da20844f966157 docker://$TARGET_PATH/ibm-spectrum-scale-pmsensors@sha256:69ae2d99018bd3ce064125677fbd8d00c3829fee64597a83b5da20844f966157 skopeo copy --all --preserve-digests docker://cp.icr.io/cp/spectrum/scale/csi/csi-snapshotter@sha256:becc53e25b96573f61f7469923a92fb3e9d3a3781732159954ce0d9da07233a2 docker://$TARGET_PATH/csi/csi-snapshotter@sha256:becc53e25b96573f61f7469923a92fb3e9d3a3781732159954ce0d9da07233a2 skopeo copy --all --preserve-digests docker://cp.icr.io/cp/spectrum/scale/csi/csi-attacher@sha256:4eb73137b66381b7b5dfd4d21d460f4b4095347ab6ed4626e0199c29d8d021af docker://$TARGET_PATH/csi/csi-attacher@sha256:4eb73137b66381b7b5dfd4d21d460f4b4095347ab6ed4626e0199c29d8d021af skopeo copy --all --preserve-digests docker://cp.icr.io/cp/spectrum/scale/csi/csi-provisioner@sha256:d078dc174323407e8cc6f0f9abd4efaac5db27838f1564d0253d5e3233e3f17f docker://$TARGET_PATH/csi/csi-provisioner@sha256:d078dc174323407e8cc6f0f9abd4efaac5db27838f1564d0253d5e3233e3f17f skopeo copy --all --preserve-digests docker://cp.icr.io/cp/spectrum/scale/csi/livenessprobe@sha256:4dc0b87ccd69f9865b89234d8555d3a614ab0a16ed94a3016ffd27f8106132ce docker://$TARGET_PATH/csi/livenessprobe@sha256:4dc0b87ccd69f9865b89234d8555d3a614ab0a16ed94a3016ffd27f8106132ce skopeo copy --all --preserve-digests docker://cp.icr.io/cp/spectrum/scale/csi/csi-node-driver-registrar@sha256:f6717ce72a2615c7fbc746b4068f788e78579c54c43b8716e5ce650d97af2df1 docker://$TARGET_PATH/csi/csi-node-driver-registrar@sha256:f6717ce72a2615c7fbc746b4068f788e78579c54c43b8716e5ce650d97af2df1 skopeo copy --all --preserve-digests docker://cp.icr.io/cp/spectrum/scale/csi/csi-resizer@sha256:2e2b44393539d744a55b9370b346e8ebd95a77573064f3f9a8caf18c22f4d0d0 docker://$TARGET_PATH/csi/csi-resizer@sha256:2e2b44393539d744a55b9370b346e8ebd95a77573064f3f9a8caf18c22f4d0d0 skopeo copy --all --preserve-digests docker://cp.icr.io/cp/spectrum/scale/csi/ibm-spectrum-scale-csi-driver@sha256:57b4ee494ca48342d1ffaf22a166286202b0406b88316e4dcbe87212df6ca8f0 docker://$TARGET_PATH/csi/ibm-spectrum-scale-csi-driver@sha256:57b4ee494ca48342d1ffaf22a166286202b0406b88316e4dcbe87212df6ca8f0 skopeo copy --all --preserve-digests docker://icr.io/cpopen/ibm-spectrum-scale-csi-operator@sha256:e3d2f9fb68b2d7cd1faf84002bb73626da10bed5d81f91945a592d41893e2fda docker://$TARGET_PATH/ibm-spectrum-scale-csi-operator@sha256:e3d2f9fb68b2d7cd1faf84002bb73626da10bed5d81f91945a592d41893e2fdaNote:- All commands must be successful.
- Do not add white spaces while you update the mirror path in ImageContentSourcePolicies. If you
want to do so, add values within double quotation marks. For example, if the new path where the
images are mirrored is
registryhost.com:443/isf-new-path, then encapsulate within double quotation marks ("") while you edit to avoid white spaces in the line.- mirrors: - "registryhost.com:443/isf-new-path" - registryhost.com:443/old-path source: cp.icr.io/cp/spectrum/scale