7.5. 红帽构建的 Kogito
从给定的资产中,使用错误的 archetype 生成项目 [RHPAM-3654]
问题:当您上传资产作为 KogitoBuild 的源时,红帽构建的 Kogito S2I 镜像会使用 kogito-quarkus-archetype:1.5.1-SNAPSHOT
生成项目。应该使用 kogito-quarkus-dm-archetype:1.5.0.redhat-00001
。
重现的步骤:
- 安装 RHPAM Kogito Operator。
创建一个
KogitoBuild
,如下所示:apiVersion: rhpam.kiegroup.org/v1 kind: KogitoBuild metadata: name: example-quarkus-local spec: buildImage: >- registry-proxy.engineering.redhat.com/rh-osbs/rhpam-7-rhpam-kogito-builder-rhel8:7.11.0-1 runtimeImage: >- registry-proxy.engineering.redhat.com/rh-osbs/rhpam-7-rhpam-kogito-runtime-jvm-rhel8:7.11.0-3 type: LocalSource
使用 Red Hat OpenShift Container Platform 客户端将资产上传到 Red Hat OpenShift Container Platform,如下所示:
oc start-build example-quarkus-local-builder --from-file=https://github.com/kiegroup/kogito-examples/blob/stable/dmn-quarkus-example/src/main/resources/Traffic%20Violation.dmn
- 检查构建器日志文件。
预期结果:当您为 KogitoBuild 上传资产时,红帽构建的 Kogito S2I 镜像会使用 kogito-quarkus-dm-archetype:1.5.0.redhat-00001
生成项目。
实际结果:当您上传 KogitoBuild 的资产时,红帽构建的 Kogito S2I 镜像会使用 kogito-quarkus-archetype:1.5.1-SNAPSHOT
生成项目。
临时解决方案:无.