diff --git a/docs/OPERATORS.md b/docs/OPERATORS.md index 7fed5398..71f96b60 100644 --- a/docs/OPERATORS.md +++ b/docs/OPERATORS.md @@ -7,7 +7,9 @@ podman login --authfile scratch/pull-secret.txt registry.redhat.io # kludge: copy registry key to podman auth -cp scratch/pull-secret.txt ${XDG_RUNTIME_DIR}/containers/auth.json +DOCKER_CONFIG=~/.docker +oc -n openshift-config extract secret/pull-secret --keys=.dockerconfigjson +mkdir -p ~/.docker && mv .dockerconfigjson ~/.docker/config.json # redhat-operators INDEX=registry.redhat.io/redhat/redhat-operator-index:v4.12 diff --git a/scripts/library/unsorted.sh b/scripts/library/unsorted.sh index 60f8fc72..559133ad 100644 --- a/scripts/library/unsorted.sh +++ b/scripts/library/unsorted.sh @@ -25,6 +25,12 @@ select_folder(){ popd >/dev/null || return } +oc_mirror_init(){ + export DOCKER_CONFIG="${GIT_ROOT}/scratch" + oc -n openshift-config extract secret/pull-secret --keys=.dockerconfigjson + mkdir -p "${DOCKER_CONFIG}" && mv .dockerconfigjson "${DOCKER_CONFIG}/config.json" +} + operator_list(){ VERSION=4.12 INDEX=${1:-registry.redhat.io/redhat/redhat-operator-index:v${VERSION}}