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

重现的步骤:

  1. 安装 RHPAM Kogito Operator。
  2. 创建一个 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
  3. 使用 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
  4. 检查构建器日志文件。

预期结果:当您为 KogitoBuild 上传资产时,红帽构建的 Kogito S2I 镜像会使用 kogito-quarkus-dm-archetype:1.5.0.redhat-00001 生成项目。

实际结果:当您上传 KogitoBuild 的资产时,红帽构建的 Kogito S2I 镜像会使用 kogito-quarkus-archetype:1.5.1-SNAPSHOT 生成项目。

临时解决方案:无.

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.