Mirroring a Catalog

Mirroring an application catalog makes a copy of the containers in an application catalog and creates a catalog in a new location. This might be useful to copy the Oracle CNE application catalog to a container registry behind a firewall.

Use the ocne catalog mirror command to mirror an application catalog. The syntax is:

ocne catalog mirror 
[{-a|--archive} path]
[{-c|--config} path]
{-d|--destination} URI
[{-o|--download}]                
{-N|--name} name
[{-p|--push}]
[{-s|--source} registry]
[{-q|--quiet}]

For more information on the syntax options, see Oracle Cloud Native Environment: CLI.

Examples:

To mirror the Oracle catalog to a private container registry:

ocne catalog mirror --destination myregistry.example.io --push

If the Oracle catalog isn't deployed to a cluster, or isn't available, the embedded Oracle catalog (built into the CLI) is used to mirror the container images.

To mirror the Oracle catalog embedded in the CLI to a private container registry:

ocne catalog mirror --name embedded --destination myregistry.example.io --push