Skip to content

Commit 2beb6f7

Browse files
Update README.md
1 parent dbb606f commit 2beb6f7

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

oc-mirror/README.md

+42-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,44 @@
11
# oc-mirror plugin
22

3-
This is a repo that I use to store all the things that I am working on. Mainly around OpenShift/Kubernetes and Telco.
3+
> :warning: At the time being, oc-mirror needs to be compiled since there is no binary available yet at the [upstream repository](https://github.com/openshift/oc-mirror). I recommend to run hack/build.sh and copy the binary to /usr/local/bin
4+
5+
This folder contains an imageset config file to mirror OCP releases and telco specific operators into a disconnected or at least a different registry than the official one.
6+
7+
```
8+
$ [root@fx2-1a oc-mirror]# oc-mirror --config imageset-config-fx2-1a-operators.yaml docker://fx2-1a.cloud.lab.eng.bos.redhat.com:8443 --dest-skip-tls
9+
INFO Checking push permissions for fx2-1a.cloud.lab.eng.bos.redhat.com:8443
10+
INFO Found: oc-mirror-workspace/src/publish
11+
INFO Found: oc-mirror-workspace/src/v2
12+
INFO Found: oc-mirror-workspace/src/charts
13+
INFO Planning download for requested release 4.9.12
14+
INFO Planning download for requested release 4.9.19
15+
INFO Planning download for requested release 4.9.21
16+
WARN[0028] DEPRECATION NOTICE:
17+
Sqlite-based catalogs and their related subcommands are deprecated. Support for
18+
them will be removed in a future release. Please migrate your catalog workflows
19+
to the new file-based catalog format.
20+
wrote mirroring manifests to oc-mirror-workspace/operators.1645699748/manifests-redhat-operator-index
21+
22+
To upload local images to a registry, run:
23+
24+
oc adm catalog mirror file://redhat/redhat-operator-index:v4.9 REGISTRY/REPOSITORY
25+
wrote mirroring manifests to oc-mirror-workspace/operators.1645699748/manifests-certified-operator-index
26+
27+
To upload local images to a registry, run:
28+
29+
oc adm catalog mirror file://redhat/certified-operator-index:v4.9 REGISTRY/REPOSITORY
30+
WARNING bundle : pinning related image quay.io/openshift-hive/hive:v1.1.10 to digest
31+
WARNING bundle : pinning related image quay.io/openshift-hive/hive:v1.1.11 to digest
32+
...
33+
34+
sha256:66bf4dc3d0a3f0559c48d7dc7b9b45af7c90e5b6be704421362645d225c09cf8 fx2-1a.cloud.lab.eng.bos.redhat.com:8443/openshift/release:4.9.12-x86_64-azure-cloud-controller-manager
35+
info: Mirroring completed in 7m50.83s (51.26MB/s)
36+
INFO trying next host - response was http.StatusNotFound host=fx2-1a.cloud.lab.eng.bos.redhat.com:8443
37+
INFO Catalog image "fx2-1a.cloud.lab.eng.bos.redhat.com:8443/redhat/certified-operator-index:v4.9" not found, using new file-based catalog
38+
INFO trying next host - response was http.StatusNotFound host=fx2-1a.cloud.lab.eng.bos.redhat.com:8443
39+
INFO Catalog image "fx2-1a.cloud.lab.eng.bos.redhat.com:8443/redhat/community-operator-index:v4.9" not found, using new file-based catalog
40+
INFO trying next host - response was http.StatusNotFound host=fx2-1a.cloud.lab.eng.bos.redhat.com:8443
41+
INFO Catalog image "fx2-1a.cloud.lab.eng.bos.redhat.com:8443/redhat/redhat-operator-index:v4.9" not found, using new file-based catalog
42+
INFO Wrote CatalogSource manifests to oc-mirror-workspace/results-1645700434
43+
INFO Wrote ICSP manifests to oc-mirror-workspace/results-1645700434
44+
```

0 commit comments

Comments
 (0)