openshift imagestream не получается - PullRequest
       45

openshift imagestream не получается

0 голосов
/ 16 октября 2018

У меня установлен Openshift 3.9.

Я занимаюсь разработкой php конвейера для демонстрации cicd.Когда я пытаюсь связать приложение с openshift-изображением cakephp-mysql-persistent, который доступен.

        stage('Build Image') {
            openshift.withCluster() {
                   openshift.withProject(env.DEV_PROJECT) {
                           openshift.newBuild("--name=php", "--image-stream=cakephp-mysql-persistent:latest", "--binary=true")
                          }}}

Это не удается с сообщением об ошибке как

ERROR: new-build returned an error;
{reference={}, err=error: unable to locate any images in image streams with name "cakephp-mysql-persistent:latest"

The 'oc new-build' command will match arguments to the following types:

  1. Images tagged into image streams in the current project or the 'openshift' project
     - if you don't specify a tag, we'll add ':latest'
  2. Images in the Docker Hub, on remote registries, or on the local Docker engine
  3. Git repository URLs or local paths that point to Git repositories

--allow-missing-images can be used to force the use of an image that was not matched

See 'oc new-build -h' for examples., verb=new-build, cmd=oc --server=https://172.30.0.1:443 --certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt --namespace=${DEV_PROJECT} --token=XXXXX new-build --name=php --image-stream=cakephp-mysql-persistent:latest --binary=true -o=name , out=, status=1}

Finished: FAILURE

На самом деле я не могу тянутьлюбое из изображений openshift, которые доступны в консоли openshift.но когда я пытаюсь это с --image-stream = php: latest это работает.Кто-нибудь может дать мне знать, что мне не хватает?

...