我在AWS上设置了一个OpenShift原点(OKD)集群。詹金斯被用于CICD管道部署。基于OpenShift文档,我试图使用源到图像(S2I)来使用redhat-openjdk-18/openjdk18-openshift映像将我的Java源代码转换成图像。我使用了以下命令
创建新的构建
$ oc new-build --binary=true --name=bookstore --image-stream=openjdk18-openshift
--> Found image 24d98bd (7 days old) in image stream "cicd/openjdk18-openshift" under tag "latest" for "openjdk18-openshift"
Java Applications
-----------------
Platform for building and running plain Java applications (fat-jar and flat classpath)
Tags: builder, java
* A source build using binary input will be created
* The resulting image will be pushed to image stream "bookstore:latest"
* A binary build was created, use 'start-build --from-dir' to trigger a new build
--> Creating resources with label build=bookstore ...
imagestream "bookstore" created
buildconf启动构建
$ oc start-build bookstore --from-dir=./ocp --follow
Uploading directory "ocp" as binary input for the build ...
build "bookstore-1" started
Receiving source from STDIN as archive ...
pulling image error : open /etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt: no such file or directory
error: build error: unable to get registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift@sha256:38dab2c3f60ade6857cc2a592184c964d3a51e2d3b5ef07def4b8ad4215d2bbf如上所示,我得到了registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift构建错误:无法在运行开始构建命令时获得错误。
发布于 2019-03-28 17:13:25
谢谢格雷厄姆的意见。我能够通过在所有节点(主节点和工作节点)上创建空文件来解决这个问题。
$ sudo vi /etc/rhsm/ca/redhat-uep.pem https://stackoverflow.com/questions/55366741
复制相似问题