5.3. 为 JBoss EAP XP 导入最新的 OpenShift 镜像流和模板
为 JBoss EAP XP 导入最新的 OpenShift 镜像流和模板。
OpenShift 上的 OpenJDK 8 镜像和镜像流已弃用。
OpenShift 中仍然支持镜像和镜像流。但是,不会对这些镜像和镜像流进行任何增强,以后可能会删除它们。红帽继续根据标准支持条款和条件提供全面支持和程序错误修复 OpenJDK 8 镜像和镜像流。
流程
要将 JBoss EAP XP 的 OpenShift 镜像的最新镜像流和模板导入到 OpenShift 项目的命名空间,请使用以下命令:
导入 JDK 11 镜像流:
oc replace --force -f https://raw.githubusercontent.com/jboss-container-images/jboss-eap-openshift-templates/eap-xp4/eap-xp4-openjdk11-image-stream.json
oc replace --force -f https://raw.githubusercontent.com/jboss-container-images/jboss-eap-openshift-templates/eap-xp4/eap-xp4-openjdk11-image-stream.jsonCopy to Clipboard Copied! Toggle word wrap Toggle overflow 此命令导入以下镜像流和模板:
- JDK 11 builder 镜像流:jboss-eap-xp4-openjdk11-openshift
- JDK 11 运行时镜像流:jboss-eap-xp4-openjdk11-runtime-openshift
导入 OpenShift 模板:
oc replace --force -f https://raw.githubusercontent.com/jboss-container-images/jboss-eap-openshift-templates/eap-xp4/templates/eap-xp4-basic-s2i.json
oc replace --force -f https://raw.githubusercontent.com/jboss-container-images/jboss-eap-openshift-templates/eap-xp4/templates/eap-xp4-basic-s2i.jsonCopy to Clipboard Copied! Toggle word wrap Toggle overflow
注意使用上述命令导入的 JBoss EAP XP 镜像流和模板仅在该 OpenShift 项目中可用。
如果您有对常规
openshift命名空间的管理权限,并希望所有项目可以访问镜像流和模板,请将-n openshift添加到 命令的oc replace行中。例如:... oc replace -n openshift --force -f \ ...
... oc replace -n openshift --force -f \ ...Copy to Clipboard Copied! Toggle word wrap Toggle overflow 如果要将镜像流和模板导入到不同的项目中,请将
-n PROJECT_NAME添加到 命令的oc replace行中。例如:... oc replace -n PROJECT_NAME --force -f ...
... oc replace -n PROJECT_NAME --force -f ...Copy to Clipboard Copied! Toggle word wrap Toggle overflow 如果使用 cluster-samples-operator,请参阅有关配置集群样本 Operator 的 OpenShift 文档。有关配置集群示例 Operator 的详细信息,请参阅配置 Cluster Samples Operator。