Skip to content

Commit 8d0e46c

Browse files
committed
Separate release extraction into two separate steps based on command differences
1 parent 39ae81e commit 8d0e46c

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

modules/installation-mirror-repository.adoc

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Mirror the {product-title} image repository to your registry to use during clust
1010

1111
.Prerequisites
1212

13-
* Your mirror host has access to the internet.
13+
* Your mirror host has access to the Internet.
1414
* You configured a mirror registry to use in your restricted network and
1515
can access the certificate and credentials that you configured.
1616
ifndef::openshift-origin[]
@@ -104,8 +104,8 @@ $ REMOVABLE_MEDIA_PATH=<path> <1>
104104
<1> Specify the full path, including the initial forward slash (/) character.
105105

106106
. Mirror the version images to the internal container registry:
107-
** If your mirror host does not have internet access, take the following actions:
108-
... Connect the removable media to a system that is connected to the internet.
107+
** If your mirror host does not have Internet access, take the following actions:
108+
... Connect the removable media to a system that is connected to the Internet.
109109
... Review the images and configuration manifests to mirror:
110110
+
111111
[source,terminal]
@@ -148,26 +148,32 @@ the `imageContentSources` data that you require when you install your cluster.
148148

149149
... Record the entire `imageContentSources` section from the output of the previous
150150
command. The information about your mirrors is unique to your mirrored repository, and you must add the `imageContentSources` section to the `install-config.yaml` file during installation.
151-
152-
151+
+
153152
[NOTE]
154153
====
155154
The image name gets patched to Quay.io during the mirroring process, and the podman images will show Quay.io in the registry on the bootstrap virtual machine.
156155
====
157156

158157
. To create the installation program that is based on the content that you
159158
mirrored, extract it and pin it to the release:
159+
** If your mirror host does not have Internet access, run the following command:
160160
+
161161
[source,terminal]
162162
----
163-
$ oc adm -a ${LOCAL_SECRET_JSON} release extract --command=openshift-install "${LOCAL_REGISTRY}/${LOCAL_REPOSITORY}:${OCP_RELEASE}-${ARCHITECTURE}"
163+
$ oc adm -a ${LOCAL_SECRET_JSON} release extract --command=openshift-install "${LOCAL_REGISTRY}/${LOCAL_REPOSITORY}:${OCP_RELEASE}"
164164
----
165+
** If the local container registry is connected to the mirror host, run the following command:
165166
+
167+
[source,terminal]
168+
----
169+
$ oc adm -a ${LOCAL_SECRET_JSON} release extract --command=openshift-install "${LOCAL_REGISTRY}/${LOCAL_REPOSITORY}:${OCP_RELEASE}-${ARCHITECTURE}"
170+
----
171+
166172
[IMPORTANT]
167173
====
168174
To ensure that you use the correct images for the version of {product-title}
169175
that you selected, you must extract the installation program from the mirrored
170176
content.
171177
172-
You must perform this step on a machine with an active internet connection.
178+
You must perform this step on a machine with an active Internet connection.
173179
====

0 commit comments

Comments
 (0)