// Module included in the following assemblies:
//
// * scalability_and_performance/low_latency_tuning/cnf-performing-platform-verification-latency-tests.adoc

:_mod-docs-content-type: PROCEDURE
[id="mirroring-different-set-of-images_{context}"]
= Mirroring a different set of test images

[role="_abstract"]
You can optionally change the default upstream images that are mirrored for the latency tests.

.Procedure

. The `mirror` command tries to mirror the upstream images by default. This can be overridden by passing a file with the following format to the image:
+

[source,yaml,subs="attributes+"]
----
[
    {
        "registry": "public.registry.io:5000",
        "image": "imageforcnftests:{product-version}"
    }
]
----

. Pass the file to the `mirror` command, for example saving it locally as `images.json`. With the following command, the local path is mounted in `/kubeconfig` inside the container and that can be passed to the mirror command.
+
[source,terminal,subs="attributes+"]
----
$ podman run -v $(pwd)/:/kubeconfig:Z -e KUBECONFIG=/kubeconfig/kubeconfig \
registry.redhat.io/openshift4/cnf-tests-rhel9:v{product-version} /usr/bin/mirror \
--registry "my.local.registry:5000/" --images "/kubeconfig/images.json" \
|  oc image mirror -f -
----
