Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@psyntium

Description

@psyntium

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}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions