无法使用OpenShift maven插件在OpenShift应用程序上构建Fuse 7.9 Kraf

当我们按照红帽官网文档的案例在Openshift上创建Fuse 7.9 Kraf时,构建可能将会失败,并出现以下错误:

[INFO] --- openshift-maven-plugin:7.9.0.fuse-sb2-790065-redhat-00001:build (build-image) @ fuse79-karaf-camel-log ---
[INFO] oc: Using OpenShift build with strategy S2I
[INFO] oc: Running in OpenShift mode
[INFO] oc: Running generator karaf
[INFO] oc: karaf: Using Docker image registry.redhat.io/fuse7/fuse-karaf-openshift:1.9 as base / builder
[INFO] oc: [fuse79-karaf-camel-log:latest] "karaf": Created docker source tar /Users/tmielke/SupportCases/RedHat/03024861/fuse79-karaf-camel-log/target/docker/fuse79-karaf-camel-log/latest/tmp/docker-build.tar
[INFO] oc: Updating BuildServiceConfig fuse79-karaf-camel-log-s2i for Source strategy
[INFO] oc: Adding to ImageStream fuse79-karaf-camel-log
[INFO] oc: Starting Build fuse79-karaf-camel-log-s2i
[INFO] oc: Waiting for build fuse79-karaf-camel-log-s2i-2 to complete...
[INFO] oc: Caching blobs under "/var/cache/blobs".
[INFO] oc: Warning: Pull failed, retrying in 5s ...
[INFO] oc: Warning: Pull failed, retrying in 5s ...
[INFO] oc: Warning: Pull failed, retrying in 5s ...
[INFO] oc: error: build error: After retrying 2 times, Pull image still failed due to error: while pulling "docker://registry.redhat.io/fuse7/fuse-karaf-openshift:1.9" as "registry.redhat.io/fuse7/fuse-karaf-openshift:1.9": Error initializing source docker://registry.redhat.io/fuse7/fuse-karaf-openshift:1.9: Error reading manifest 1.9 in registry.redhat.io/fuse7/fuse-karaf-openshift: StatusCode: 404, Not found
[ERROR] oc: Failed to execute the build [Unable to build the image using the OpenShift build service]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

出现该问题的问题大致是因为openshift maven插件默认配置为使用图像fuse7/fuse-karaf openshift:1.9,但我们将该图像重命名为fuse7/fuse-karaf-openshift-rhel8:1.9

解决方案


给TA买糖
共{{data.count}}人
人已赞赏
笔记

Services fail to start and segfault in libglib-2.0.so.0.5600.

2021-9-7 15:05:20

笔记

DELL/EMC+UEFI:当TPM 1.2激活时,系统无法启动,选项为“On without Pre-Boot Measurements”,显示“Something has gone seriously wrong: import_mok_state() failed: Unsupported”消息

2021-9-9 21:24:43

此心远送浑河岸,斟别酒,唱阳关,临别无语空长叹,酒已阑,曲未残,人初散,心长怀去后,杳鱼雁,对遥山,当时无计锁雕鞍,去后思量悔应晚,别时容易见时难!
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索