Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extracting the command under the "Next steps" after oc ibm-pak generate mirror-manifests #57

Open
psyntium opened this issue Dec 11, 2024 · 0 comments

Comments

@psyntium
Copy link

psyntium commented Dec 11, 2024

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}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant