Hi,
After executing the following command:
oc ibm-pak generate mirror-manifests --version "${CASE_VERSION}" "${CASE_NAME}" "${TARGET_PATH}"
at the end of a successful generation, we can see the following message, for example:
- To mirror the images:
oc image mirror -f /root/.ibm-pak/data/mirror/${CASE_VERSION}/${CASE_NAME}/images-mapping.txt --filter-by-os '.*' -a $REGISTRY_AUTH_FILE --insecure --skip-multiple-scopes --max-per-registry=1
as part of automation, how do I extract or get this exact command to execute automatically via script because the message might be different?
For example, another guideline mentioned that the command may generate the following at the end instead:
- To mirror the non curated catalog:
oc mirror --config /root/.ibm-pak/data/mirror/${CASE_NAME}/${CASE_VERSION}/image-set-config.yaml docker://${TARGET_PATH}