《OpenShift 4.x HOL教程汇总》
说明:本文已经在OpenShift 4.7环境中验证

在离线安装的OpenShift环境中,OpenShift项目中的ImageStream使用到的Image需要手动下载。

  1. 从https://cloud.redhat.com/openshift/install/pull-secret下载“pull secret”保存到本地“redhat-pull-secret.json”文件。
  2. 执行命令,设置“REDHAT_PULL_SECRET”变量。
export REDHAT_PULL_SECRET=~/redhat-pull-secret.json
jq . ${REDHAT_PULL_SECRET}
{"auths": {"cloud.openshift.com": {"auth": "xxxxxxx","email": "xxx@xxx.com"},"quay.io": {"auth": "xxxxxxxx","email": "lxxx@xxx.com"},"registry.connect.redhat.com": {"auth": "xxxxxxxx","email": "xxx@xxx.com"},"registry.redhat.io": {"auth": "xxxxxx","email": "xxx@xxx.com"}}
}
  1. 执行命令创建相关目录
OCP_PATH=/data/OCP-4.7.9/ocp
mkdir -p ${OCP_PATH}/app-image/redhat-app
  1. 执行以下命令创建名为app-images.txt的文件,并将所有镜像repository写入改文件。
IMAGE_LIST_FILE_NAME=${OCP_PATH}/app-image/redhat-app/app-images.txt
touch ${IMAGE_LIST_FILE_NAME}
IMAGES=$(oc get is -o custom-columns=NAME:metadata.name --no-headers -l samples.operator.openshift.io/managed)
for IMAGE in ${IMAGES}
doi=0IS_KINDS=$(oc get is ${IMAGE} -o=jsonpath='{.spec.tags[*].from.kind}')for IS_KIND in ${IS_KINDS}doif [ $IS_KIND = "DockerImage" ]; thenIS_ADDR=$(oc get is ${IMAGE} -o=jsonpath={.spec.tags[$i].from.name})SITE=${IS_ADDR:0:8}if [ ${SITE} = "registry" ]; thenecho ${IS_ADDR} >> ${IMAGE_LIST_FILE_NAME}fifi((i++))done
done
  1. 查看app-images.txt文件内容,可以根据需要删减项目。
registry.redhat.io/3scale-amp21/apicast-gateway:1.4-2
registry.redhat.io/3scale-amp22/apicast-gateway:1.8
registry.redhat.io/3scale-amp23/apicast-gateway
registry.redhat.io/3scale-amp24/apicast-gateway
registry.redhat.io/3scale-amp25/apicast-gateway
registry.redhat.io/3scale-amp26/apicast-gateway
registry.redhat.io/3scale-amp2/apicast-gateway-rhel7:3scale2.7
registry.redhat.io/3scale-amp2/apicast-gateway-rhel8:3scale2.8
registry.redhat.io/3scale-amp2/apicast-gateway-rhel8:3scale2.9
registry.redhat.io/fuse7/fuse-apicurito:1.2
registry.redhat.io/fuse7/fuse-apicurito:1.3
registry.redhat.io/fuse7/fuse-apicurito:1.4
registry.redhat.io/fuse7/fuse-apicurito:1.5
registry.redhat.io/fuse7/fuse-apicurito:1.6
registry.redhat.io/fuse7/fuse-apicurito:1.7
registry.redhat.io/dotnet/dotnet-21-rhel7:2.1
registry.redhat.io/dotnet/dotnet-21-rhel7:2.1
registry.access.redhat.com/ubi8/dotnet-21:2.1
registry.redhat.io/dotnet/dotnet-31-rhel7:3.1
registry.redhat.io/dotnet/dotnet-31-rhel7:3.1
registry.access.redhat.com/ubi8/dotnet-31:3.1
registry.redhat.io/dotnet/dotnet-21-runtime-rhel7:2.1
registry.redhat.io/dotnet/dotnet-21-runtime-rhel7:2.1
registry.access.redhat.com/ubi8/dotnet-21-runtime:2.1
registry.redhat.io/dotnet/dotnet-31-runtime-rhel7:3.1
registry.redhat.io/dotnet/dotnet-31-runtime-rhel7:3.1
registry.access.redhat.com/ubi8/dotnet-31-runtime:3.1
registry.redhat.io/jboss-eap-7-tech-preview/eap-cd-openshift:12.0
registry.redhat.io/jboss-eap-7-tech-preview/eap-cd-openshift:13.0
registry.redhat.io/jboss-eap-7-tech-preview/eap-cd-openshift:14.0
registry.redhat.io/jboss-eap-7-tech-preview/eap-cd-openshift:15.0
registry.redhat.io/jboss-eap-7-tech-preview/eap-cd-openshift:16.0
registry.redhat.io/jboss-eap-7-tech-preview/eap-cd-openshift-rhel8:17.0
registry.redhat.io/jboss-eap-7-tech-preview/eap-cd-openshift-rhel8:18.0
registry.redhat.io/jboss-eap-7-tech-preview/eap-cd-openshift-rhel8:19.0
registry.redhat.io/jboss-eap-7-tech-preview/eap-cd-openshift-rhel8:20.0
registry.redhat.io/jboss-eap-7-tech-preview/eap-cd-openshift-rhel8:latest
registry.redhat.io/jboss-eap-7-tech-preview/eap-cd-runtime-openshift-rhel8:18.0
registry.redhat.io/jboss-eap-7-tech-preview/eap-cd-runtime-openshift-rhel8:19.0
registry.redhat.io/jboss-eap-7-tech-preview/eap-cd-runtime-openshift-rhel8:20.0
registry.redhat.io/jboss-eap-7-tech-preview/eap-cd-runtime-openshift-rhel8:latest
registry.redhat.io/jboss-fuse-6/fis-java-openshift:1.0
registry.redhat.io/jboss-fuse-6/fis-java-openshift:2.0
registry.redhat.io/jboss-fuse-6/fis-karaf-openshift:1.0
registry.redhat.io/jboss-fuse-6/fis-karaf-openshift:2.0
registry.redhat.io/fuse7/fuse-apicurito-generator:1.2
registry.redhat.io/fuse7/fuse-apicurito-generator:1.3
registry.redhat.io/fuse7/fuse-apicurito-generator:1.4
registry.redhat.io/fuse7/fuse-apicurito-generator:1.5
registry.redhat.io/fuse7/fuse-apicurito-generator:1.6
registry.redhat.io/fuse7/fuse-apicurito-generator:1.7
registry.redhat.io/fuse7/fuse-console:1.0
registry.redhat.io/fuse7/fuse-console:1.1
registry.redhat.io/fuse7/fuse-console:1.2
registry.redhat.io/fuse7/fuse-console:1.3
registry.redhat.io/fuse7/fuse-console:1.4
registry.redhat.io/fuse7/fuse-console:1.5
registry.redhat.io/fuse7/fuse-console:1.6
registry.redhat.io/fuse7/fuse-console:1.7
registry.redhat.io/fuse7/fuse-eap-openshift:1.0
registry.redhat.io/fuse7/fuse-eap-openshift:1.1
registry.redhat.io/fuse7/fuse-eap-openshift:1.2
registry.redhat.io/fuse7/fuse-eap-openshift:1.3
registry.redhat.io/fuse7/fuse-eap-openshift:1.4
registry.redhat.io/fuse7/fuse-eap-openshift:1.5
registry.redhat.io/fuse7/fuse-eap-openshift:1.6
registry.redhat.io/fuse7/fuse-eap-openshift:1.7
registry.redhat.io/fuse7/fuse-java-openshift:1.0
registry.redhat.io/fuse7/fuse-java-openshift:1.1
registry.redhat.io/fuse7/fuse-java-openshift:1.2
registry.redhat.io/fuse7/fuse-java-openshift:1.3
registry.redhat.io/fuse7/fuse-java-openshift:1.4
registry.redhat.io/fuse7/fuse-java-openshift:1.5
registry.redhat.io/fuse7/fuse-java-openshift:1.6
registry.redhat.io/fuse7/fuse-java-openshift:1.7
registry.redhat.io/fuse7/fuse-karaf-openshift:1.0
registry.redhat.io/fuse7/fuse-karaf-openshift:1.1
registry.redhat.io/fuse7/fuse-karaf-openshift:1.2
registry.redhat.io/fuse7/fuse-karaf-openshift:1.3
registry.redhat.io/fuse7/fuse-karaf-openshift:1.4
registry.redhat.io/fuse7/fuse-karaf-openshift:1.5
registry.redhat.io/fuse7/fuse-karaf-openshift:1.7
registry.redhat.io/ubi7/go-toolset:1.13.4
registry.redhat.io/ubi8/go-toolset:1.14.7
registry.redhat.io/rhscl/httpd-24-rhel7
registry.redhat.io/rhscl/httpd-24-rhel7
registry.redhat.io/rhel8/httpd-24
registry.redhat.io/openjdk/openjdk-11-rhel7:latest
registry.redhat.io/redhat-openjdk-18/openjdk18-openshift:latest
registry.redhat.io/openjdk/openjdk-11-rhel7:latest
registry.redhat.io/ubi8/openjdk-11:latest
registry.redhat.io/redhat-openjdk-18/openjdk18-openshift:latest
registry.redhat.io/ubi8/openjdk-8:latest
registry.redhat.io/jboss-amq-6/amq62-openshift:1.1
registry.redhat.io/jboss-amq-6/amq62-openshift:1.2
registry.redhat.io/jboss-amq-6/amq62-openshift:1.3
registry.redhat.io/jboss-amq-6/amq62-openshift:1.4
registry.redhat.io/jboss-amq-6/amq62-openshift:1.5
registry.redhat.io/jboss-amq-6/amq62-openshift:1.6
registry.redhat.io/jboss-amq-6/amq62-openshift:1.7
registry.redhat.io/jboss-amq-6/amq63-openshift:1.0
registry.redhat.io/jboss-amq-6/amq63-openshift:1.1
registry.redhat.io/jboss-amq-6/amq63-openshift:1.2
registry.redhat.io/jboss-amq-6/amq63-openshift:1.3
registry.redhat.io/jboss-amq-6/amq63-openshift:1.4
registry.redhat.io/jboss-datagrid-6/datagrid65-client-openshift:1.0
registry.redhat.io/jboss-datagrid-6/datagrid65-client-openshift:1.1
registry.redhat.io/jboss-datagrid-6/datagrid65-openshift:1.2
registry.redhat.io/jboss-datagrid-6/datagrid65-openshift:1.3
registry.redhat.io/jboss-datagrid-6/datagrid65-openshift:1.4
registry.redhat.io/jboss-datagrid-6/datagrid65-openshift:1.5
registry.redhat.io/jboss-datagrid-6/datagrid65-openshift:1.6
registry.redhat.io/jboss-datagrid-7/datagrid71-client-openshift:1.0
registry.redhat.io/jboss-datagrid-7/datagrid71-openshift:1.0
registry.redhat.io/jboss-datagrid-7/datagrid71-openshift:1.1
registry.redhat.io/jboss-datagrid-7/datagrid71-openshift:1.2
registry.redhat.io/jboss-datagrid-7/datagrid71-openshift:1.3
registry.redhat.io/jboss-datagrid-7/datagrid72-openshift:1.0
registry.redhat.io/jboss-datagrid-7/datagrid72-openshift:1.1
registry.redhat.io/jboss-datagrid-7/datagrid72-openshift:1.2
registry.redhat.io/jboss-datagrid-7/datagrid73-openshift:1.0
registry.redhat.io/jboss-datagrid-7/datagrid73-openshift:1.1
registry.redhat.io/jboss-datagrid-7/datagrid73-openshift:1.2
registry.redhat.io/jboss-datagrid-7/datagrid73-openshift:1.3
registry.redhat.io/jboss-datagrid-7/datagrid73-openshift:1.4
registry.redhat.io/jboss-datavirt-6/datavirt64-driver-openshift:1.0
registry.redhat.io/jboss-datavirt-6/datavirt64-driver-openshift:1.1
registry.redhat.io/jboss-datavirt-6/datavirt64-driver-openshift:1.2
registry.redhat.io/jboss-datavirt-6/datavirt64-driver-openshift:1.3
registry.redhat.io/jboss-datavirt-6/datavirt64-driver-openshift:1.4
registry.redhat.io/jboss-datavirt-6/datavirt64-driver-openshift:1.5
registry.redhat.io/jboss-datavirt-6/datavirt64-driver-openshift:1.6
registry.redhat.io/jboss-datavirt-6/datavirt64-driver-openshift:1.7
registry.redhat.io/jboss-datavirt-6/datavirt64-openshift:1.0
registry.redhat.io/jboss-datavirt-6/datavirt64-openshift:1.1
registry.redhat.io/jboss-datavirt-6/datavirt64-openshift:1.2
registry.redhat.io/jboss-datavirt-6/datavirt64-openshift:1.3
registry.redhat.io/jboss-datavirt-6/datavirt64-openshift:1.4
registry.redhat.io/jboss-datavirt-6/datavirt64-openshift:1.5
registry.redhat.io/jboss-datavirt-6/datavirt64-openshift:1.6
registry.redhat.io/jboss-datavirt-6/datavirt64-openshift:1.7
registry.redhat.io/jboss-decisionserver-6/decisionserver64-openshift:1.0
registry.redhat.io/jboss-decisionserver-6/decisionserver64-openshift:1.1
registry.redhat.io/jboss-decisionserver-6/decisionserver64-openshift:1.2
registry.redhat.io/jboss-decisionserver-6/decisionserver64-openshift:1.3
registry.redhat.io/jboss-decisionserver-6/decisionserver64-openshift:1.4
registry.redhat.io/jboss-decisionserver-6/decisionserver64-openshift:1.5
registry.redhat.io/jboss-decisionserver-6/decisionserver64-openshift:1.6
registry.redhat.io/jboss-eap-6/eap64-openshift:1.1
registry.redhat.io/jboss-eap-6/eap64-openshift:1.2
registry.redhat.io/jboss-eap-6/eap64-openshift:1.3
registry.redhat.io/jboss-eap-6/eap64-openshift:1.4
registry.redhat.io/jboss-eap-6/eap64-openshift:1.5
registry.redhat.io/jboss-eap-6/eap64-openshift:1.6
registry.redhat.io/jboss-eap-6/eap64-openshift:1.7
registry.redhat.io/jboss-eap-6/eap64-openshift:1.8
registry.redhat.io/jboss-eap-6/eap64-openshift:1.9
registry.redhat.io/jboss-eap-6/eap64-openshift:latest
registry.redhat.io/jboss-eap-7/eap70-openshift:1.3
registry.redhat.io/jboss-eap-7/eap70-openshift:1.4
registry.redhat.io/jboss-eap-7/eap70-openshift:1.5
registry.redhat.io/jboss-eap-7/eap70-openshift:1.6
registry.redhat.io/jboss-eap-7/eap70-openshift:1.7
registry.redhat.io/jboss-eap-7/eap71-openshift:1.1
registry.redhat.io/jboss-eap-7/eap71-openshift:1.2
registry.redhat.io/jboss-eap-7/eap71-openshift:1.3
registry.redhat.io/jboss-eap-7/eap71-openshift:1.4
registry.redhat.io/jboss-eap-7/eap71-openshift:latest
registry.redhat.io/jboss-eap-7/eap72-openjdk11-openshift-rhel8:1.0
registry.redhat.io/jboss-eap-7/eap72-openjdk11-openshift-rhel8:1.1
registry.redhat.io/jboss-eap-7/eap72-openjdk11-openshift-rhel8:latest
registry.redhat.io/jboss-eap-7/eap72-openshift:1.0
registry.redhat.io/jboss-eap-7/eap72-openshift:1.1
registry.redhat.io/jboss-eap-7/eap72-openshift:1.2
registry.redhat.io/jboss-eap-7/eap72-openshift:latest
registry.redhat.io/jboss-eap-7/eap73-openjdk11-openshift-rhel8:latest
registry.redhat.io/jboss-eap-7/eap73-openjdk11-openshift-rhel8:7.3.0
registry.redhat.io/jboss-eap-7/eap73-openjdk11-openshift-rhel8:latest
registry.redhat.io/jboss-eap-7/eap73-openjdk11-runtime-openshift-rhel8:latest
registry.redhat.io/jboss-eap-7/eap73-openjdk11-runtime-openshift-rhel8:7.3.0
registry.redhat.io/jboss-eap-7/eap73-openjdk11-runtime-openshift-rhel8:latest
registry.redhat.io/jboss-eap-7/eap73-openjdk8-openshift-rhel7:latest
registry.redhat.io/jboss-eap-7/eap73-openjdk8-openshift-rhel7:7.3.0
registry.redhat.io/jboss-eap-7/eap73-openjdk8-openshift-rhel7:latest
registry.redhat.io/jboss-eap-7/eap73-openjdk8-runtime-openshift-rhel7:latest
registry.redhat.io/jboss-eap-7/eap73-openjdk8-runtime-openshift-rhel7:7.3.0
registry.redhat.io/jboss-eap-7/eap73-openjdk8-runtime-openshift-rhel7:latest
registry.redhat.io/fuse7/fuse-console:1.0
registry.redhat.io/fuse7/fuse-eap-openshift:1.0
registry.redhat.io/fuse7/fuse-java-openshift:1.0
registry.redhat.io/fuse7/fuse-karaf-openshift:1.0
registry.redhat.io/jboss-processserver-6/processserver64-openshift:1.0
registry.redhat.io/jboss-processserver-6/processserver64-openshift:1.1
registry.redhat.io/jboss-processserver-6/processserver64-openshift:1.2
registry.redhat.io/jboss-processserver-6/processserver64-openshift:1.3
registry.redhat.io/jboss-processserver-6/processserver64-openshift:1.4
registry.redhat.io/jboss-processserver-6/processserver64-openshift:1.5
registry.redhat.io/jboss-processserver-6/processserver64-openshift:1.6
registry.redhat.io/jboss-webserver-3/webserver31-tomcat7-openshift:1.0
registry.redhat.io/jboss-webserver-3/webserver31-tomcat7-openshift:1.1
registry.redhat.io/jboss-webserver-3/webserver31-tomcat7-openshift:1.2
registry.redhat.io/jboss-webserver-3/webserver31-tomcat7-openshift:1.3
registry.redhat.io/jboss-webserver-3/webserver31-tomcat7-openshift:1.4
registry.redhat.io/jboss-webserver-3/webserver31-tomcat8-openshift:1.0
registry.redhat.io/jboss-webserver-3/webserver31-tomcat8-openshift:1.1
registry.redhat.io/jboss-webserver-3/webserver31-tomcat8-openshift:1.2
registry.redhat.io/jboss-webserver-3/webserver31-tomcat8-openshift:1.3
registry.redhat.io/jboss-webserver-3/webserver31-tomcat8-openshift:1.4
registry.redhat.io/jboss-webserver-5/webserver54-openjdk11-tomcat9-openshift-rhel7:1.0
registry.redhat.io/jboss-webserver-5/webserver54-openjdk11-tomcat9-openshift-rhel7:latest
registry.redhat.io/jboss-webserver-5/webserver54-openjdk11-tomcat9-openshift-rhel8:1.0
registry.redhat.io/jboss-webserver-5/webserver54-openjdk11-tomcat9-openshift-rhel8:latest
registry.redhat.io/jboss-webserver-5/webserver54-openjdk8-tomcat9-openshift-rhel7:1.0
registry.redhat.io/jboss-webserver-5/webserver54-openjdk8-tomcat9-openshift-rhel7:latest
registry.redhat.io/jboss-webserver-5/webserver54-openjdk8-tomcat9-openshift-rhel8:1.0
registry.redhat.io/jboss-webserver-5/webserver54-openjdk8-tomcat9-openshift-rhel8:latest
registry.redhat.io/rhscl/mariadb-103-rhel7:latest
registry.redhat.io/rhscl/mariadb-103-rhel7:latest
registry.redhat.io/rhel8/mariadb-103:latest
registry.redhat.io/rhscl/mongodb-36-rhel7:latest
registry.redhat.io/rhscl/mysql-80-rhel7:latest
registry.redhat.io/rhscl/mysql-80-rhel7:latest
registry.redhat.io/rhel8/mysql-80:latest
registry.redhat.io/rhel8/nginx-114:latest
registry.redhat.io/rhscl/nginx-116-rhel7:latest
registry.redhat.io/rhscl/nginx-116-rhel7:latest
registry.redhat.io/rhel8/nginx-116:latest
registry.redhat.io/ubi7/nginx-118:latest
registry.redhat.io/ubi8/nginx-118:latest
registry.redhat.io/rhscl/nodejs-10-rhel7:latest
registry.redhat.io/ubi7/nodejs-10:latest
registry.redhat.io/ubi8/nodejs-10:latest
registry.redhat.io/rhscl/nodejs-12-rhel7:latest
registry.redhat.io/ubi7/nodejs-12:latest
registry.redhat.io/ubi8/nodejs-12:latest
registry.redhat.io/ubi7/nodejs-14:latest
registry.redhat.io/ubi8/nodejs-14:latest
registry.redhat.io/openjdk/openjdk-11-rhel7:1.0
registry.redhat.io/openjdk/openjdk-11-rhel7:1.1
registry.redhat.io/openjdk/openjdk-11-rhel8:1.0
registry.redhat.io/rhscl/perl-526-rhel7:latest
registry.redhat.io/rhscl/perl-526-rhel7:latest
registry.redhat.io/ubi8/perl-526:latest
registry.redhat.io/rhscl/perl-530-rhel7:latest
registry.redhat.io/rhscl/perl-530-rhel7:latest
registry.redhat.io/ubi8/perl-530:latest
registry.redhat.io/ubi8/php-72:latest
registry.redhat.io/rhscl/php-73-rhel7:latest
registry.redhat.io/ubi7/php-73:latest
registry.redhat.io/ubi8/php-73:latest
registry.redhat.io/ubi8/php-74:latest
registry.redhat.io/rhscl/postgresql-10-rhel7:latest
registry.redhat.io/rhscl/postgresql-10-rhel7:latest
registry.redhat.io/rhel8/postgresql-10:latest
registry.redhat.io/rhscl/postgresql-12-rhel7:latest
registry.redhat.io/rhscl/postgresql-12-rhel7:latest
registry.redhat.io/rhel8/postgresql-12:latest
registry.redhat.io/rhel8/postgresql-96:latest
registry.redhat.io/rhscl/python-27-rhel7:latest
registry.redhat.io/ubi7/python-27:latest
registry.redhat.io/ubi8/python-27:latest
registry.redhat.io/ubi8/python-36:latest
registry.redhat.io/rhscl/python-38-rhel7:latest
registry.redhat.io/ubi7/python-38:latest
registry.redhat.io/ubi8/python-38:latest
registry.redhat.io/redhat-openjdk-18/openjdk18-openshift:1.0
registry.redhat.io/redhat-openjdk-18/openjdk18-openshift:1.1
registry.redhat.io/redhat-openjdk-18/openjdk18-openshift:1.2
registry.redhat.io/redhat-openjdk-18/openjdk18-openshift:1.3
registry.redhat.io/redhat-openjdk-18/openjdk18-openshift:1.4
registry.redhat.io/redhat-openjdk-18/openjdk18-openshift:1.5
registry.redhat.io/redhat-openjdk-18/openjdk18-openshift:1.6
registry.redhat.io/redhat-openjdk-18/openjdk18-openshift:1.7
registry.redhat.io/redhat-openjdk-18/openjdk18-openshift:1.8
registry.redhat.io/redhat-sso-7/sso70-openshift:1.3
registry.redhat.io/redhat-sso-7/sso70-openshift:1.4
registry.redhat.io/redhat-sso-7/sso71-openshift:1.0
registry.redhat.io/redhat-sso-7/sso71-openshift:1.1
registry.redhat.io/redhat-sso-7/sso71-openshift:1.2
registry.redhat.io/redhat-sso-7/sso71-openshift:1.3
registry.redhat.io/redhat-sso-7/sso72-openshift:1.0
registry.redhat.io/redhat-sso-7/sso72-openshift:1.1
registry.redhat.io/redhat-sso-7/sso72-openshift:1.2
registry.redhat.io/redhat-sso-7/sso72-openshift:1.3
registry.redhat.io/redhat-sso-7/sso72-openshift:1.4
registry.redhat.io/redhat-sso-7/sso73-openshift:1.0
registry.redhat.io/redhat-sso-7/sso73-openshift:1.0
registry.redhat.io/rhscl/redis-5-rhel7:latest
registry.redhat.io/rhscl/redis-5-rhel7:latest
registry.redhat.io/rhel8/redis-5:latest
registry.redhat.io/rhdm-7/rhdm-decisioncentral-rhel8:7.9.0
registry.redhat.io/rhdm-7/rhdm-kieserver-rhel8:7.9.0
registry.redhat.io/rhpam-7/rhpam-businesscentral-monitoring-rhel8:7.9.0
registry.redhat.io/rhpam-7/rhpam-businesscentral-rhel8:7.9.0
registry.redhat.io/rhpam-7/rhpam-kieserver-rhel8:7.9.0
registry.redhat.io/rhpam-7/rhpam-smartrouter-rhel8:7.9.0
registry.redhat.io/rhscl/ruby-25-rhel7:latest
registry.redhat.io/ubi7/ruby-25:latest
registry.redhat.io/ubi8/ruby-25:latest
registry.redhat.io/rhscl/ruby-26-rhel7:latest
registry.redhat.io/ubi7/ruby-26:latest
registry.redhat.io/ubi8/ruby-26:latest
registry.redhat.io/rhscl/ruby-27-rhel7:latest
registry.redhat.io/ubi7/ruby-27:latest
registry.redhat.io/ubi8/ruby-27:latest
registry.redhat.io/rh-sso-7/sso74-openshift-rhel8:7.4
registry.access.redhat.com/ubi8/openjdk-11:1.3
registry.access.redhat.com/ubi8/openjdk-8:1.3
  1. 执行命令,根据app-images.txt的内容下载Image到“${OCP_PATH}/app-image/redhat-app/images”目录中。
cat ${OCP_PATH}/app-image/redhat-app/app-images.txt | while read line; doecho “"================> Begin downloading ${line} <================"”oc image mirror -a ${REDHAT_PULL_SECRET} ${line} --filter-by-os=linux/amd64 --dir=${OCP_PATH}/app-image/redhat-app/images file://$(echo ${line} | cut -d '/' -f2)/$(echo ${line} | cut -d '/' -f3)
done
  1. 执行命令查看下载的Image目录大小。
du -lh ${OCP_PATH}/app-image/redhat-app/images/v2 --max-depth=1
90M     /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/3scale-amp21
92M     /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/3scale-amp22
107M    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/3scale-amp23
291M    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/3scale-amp24
228M    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/3scale-amp25
99M     /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/3scale-amp26
303M    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/3scale-amp2
11G     /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/fuse7
689M    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/dotnet
5.2G    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/ubi8
4.6G    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/jboss-eap-7-tech-preview
656M    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/jboss-fuse-6
2.1G    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/ubi7
12G     /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/rhscl
5.0G    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/rhel8
556M    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/openjdk
1.4G    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/redhat-openjdk-18
3.4G    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/jboss-amq-6
1.9G    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/jboss-datagrid-6
4.6G    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/jboss-datagrid-7
9.2G    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/jboss-datavirt-6
3.2G    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/jboss-decisionserver-6
5.2G    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/jboss-eap-6
9.9G    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/jboss-eap-7
3.2G    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/jboss-processserver-6
1.8G    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/jboss-webserver-3
843M    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/jboss-webserver-5
7.3G    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/redhat-sso-7
1.4G    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/rhdm-7
2.3G    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/rhpam-7
618M    /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2/rh-sso-7
98G     /data/OCP-4.7.9/ocp/app-image/redhat-app/images/v2
  1. 执行命令,将下载的Image压缩到各自的文件中。
for dir1 in $(ls --indicator-style=none ${OCP_PATH}/app-image/redhat-app/images/v2); dofor dir2 in $(ls --indicator-style=none ${OCP_PATH}/app-image/redhat-app/images/v2/${dir1}); dotar -zcvf ${OCP_PATH}/app-image/redhat-app/images/v2/${dir1}/${dir2}.tar.gz \-C ${OCP_PATH}/app-image/redhat-app/images/v2/${dir1} ${dir2};done
done

OpenShift 4 - 下载OpenShift项目中的ImageStream相关推荐

  1. 如何下载github项目中的某一部分

    如何下载github项目中的某一部分 一.总结 一句话总结: 通过 DownGit 下载:原地址失败的话直接百度DownGit,一大堆可用的 通过 Chrome 插件 GitZip 进行下载(推荐) ...

  2. java中浏览器下载文件_浏览器下载java项目中的文件

    有一些文件保存在项目中需要在浏览器打开的页面中下载,需要找准文件的存储路径 工程格式 2.代码 public String execute() throws Exception { HttpServl ...

  3. 如何从GitHub上下载一个项目中的单个文件或者子文件夹

    放入文件链接即可下载: https://minhaskamal.github.io/DownGit/#/home 示例: (一)打开GitHub,找到想要下载的项目文件 (二)进入文件夹,复制链接 ( ...

  4. ssm框架的项目中用户图片的上传功能

    后台管理的web项目中,需要完成图片的上传功能 工具准备:一.图片上传的必要JS文件:二:当前页面中JS重写提交图片的方法:三.后台接收和处理图片的方法 整体思路:一.HTML中添加文件上传按钮: 二 ...

  5. OpenShift 4 概念 - OpenShift是如何通过ImageStream访问Image的

    <OpenShift 4.x HOL教程汇总> 说明:本文已经在OpenShift 4.6环境中验证 文章目录 ImageStream基本概念 Internal Image 和 Exter ...

  6. 如何快速将下载好的大量源代码文件加入到VS项目中

    [摘要]有时候我们在网上下载一些源码文件,或者直接在C++技术网复制完整的代码,然后存储为代码文件,我们就有很多代码文件了.这些文件是分多个目录和文件的结构,然而我们要将这些代码添加到我们的项目中使用 ...

  7. java design按钮_DesignJava 设计模式,讲述 的各种 方便在项目中进行 框架结构 Develop 238万源代码下载- www.pudn.com...

    文件名称: DesignJava下载 收藏√  [ 5  4  3  2  1 ] 开发工具: Java 文件大小: 1675 KB 上传时间: 2013-11-21 下载次数: 2 提 供 者: 1 ...

  8. java编码规范文档 下载_软件项目实训及课程设计指导——制定待开发项目中各种文档的规范...

    软件项目实训及课程设计指导--制定待开发项目中各种形式文档的规范 1.制定对课程设计项目开发过程中的规范性要求 (1)从"形式"到"内容"两个方面控制和要求开发 ...

  9. Idea中怎么运行从github上下载的项目

    小伙伴们是不是经常会从github上下载的项目,偷学点技术,开开心心的找了半天找到一个对自己胃口的项目,好的,下载到本地,Idea打开项目却发现各种坑**的不能运行,不能运行你TM 上传 ~,这种问题 ...

最新文章

  1. HashMap的工作原理
  2. 【转】js之iframe子页面与父页面通信
  3. 接口调试利器Postman
  4. 巧用lock解决缓存击穿的解决方案
  5. 我今年89岁,刚刚拿了个物理学博士学位
  6. Android 代码混淆(一)
  7. vector 函数都有哪些??
  8. 利用GridView显示主细表并添加打开、关闭功能
  9. 单测量矢量多目标精确DOA估计的高效稀疏表示算法
  10. ContactsProvider2
  11. win10默认壁纸_Win10瞬间审美爆炸,5分钟一键美化,不输万元Mac!
  12. 只用最适合的!全面对比主流 .NET 报表控件
  13. PHP设置表格框线,ppt中表格边框线条怎样设置?
  14. Android HotFix
  15. MLC颗粒+eMMC 5.0,Kuner扩容iPhone6
  16. sinc函数卷积_11-2   Sinc 函数与矩形脉冲
  17. 展讯7731C_M Android6.0 充电指示灯实现(一)------关机充电实现【转】
  18. PWM控制直流电机的正转、反转、加速和减速
  19. Qbo’s concept and design
  20. “之“字形打印矩阵(Java)

热门文章

  1. 卷积码主要是对抗_【零基础学会LTE】【3】LTE 36.212 咬尾卷积码详解
  2. 滚动模式_违停车辆有可能被强制拖车!嘉兴交警开启滚动式兵团化作战模式
  3. linux c程序调用脚本,C程序与Lua脚本相互调用
  4. 文本分类模型_文本分类中的经典深度学习模型
  5. 分子动力学模拟软件_机器学习模拟1亿原子:中美团队获2020「超算诺贝尔奖」戈登贝尔奖...
  6. php替换指定函数,PHP替换指定字符函数str_replace()的用法
  7. 网站界面设计没有灵感,不妨去探索广袤的大自然!
  8. 潮流设计师创作灵感|是时候设计一下蒸汽波海报了!
  9. 告别传统商务海报版式|绚丽色彩的你,感觉更具现代与活力
  10. php curl 链接无效时,在PHP中使用CURL的POST会产生无效的请求错误