Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-1319

The examples for use jboss-webserver openshift imagestream are invalid

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • JWS 3.1.0 SP5 GA
    • Documentation
    • None
    • Hide

      The wrong example would be valid if it was used a valid tag between the existents for the jboss-webserver31-tomcat8-openshift imagestream (1.0,1.1,1.2), then it could be:

      $ oc new-build --binary=true --image-stream=jboss-webserver31-tomcat8-openshift:1.2 --name=test1
      --> Found image 48ba94f (4 months old) in image stream "openshift/jboss-webserver31-tomcat8-openshift" under tag "1.2" for "jboss-webserver31-tomcat8-openshift:1.2"

      JBoss Web Server 3.1
      --------------------
      Platform for building and running web applications on JBoss Web Server 3.1 - Tomcat v8

      Tags: builder, java, tomcat8

      • A source build using binary input will be created
      • The resulting image will be pushed to image stream tag "test1:latest"
      • A binary build was created, use 'start-build --from-dir' to trigger a new build

      --> Creating resources with label build=test1 ...
      imagestream.image.openshift.io "test1" created
      buildconfig.build.openshift.io "test1" created
      --> Success

      Show
      The wrong example would be valid if it was used a valid tag between the existents for the jboss-webserver31-tomcat8-openshift imagestream (1.0,1.1,1.2), then it could be: $ oc new-build --binary=true --image-stream=jboss-webserver31-tomcat8-openshift:1.2 --name=test1 --> Found image 48ba94f (4 months old) in image stream "openshift/jboss-webserver31-tomcat8-openshift" under tag "1.2" for "jboss-webserver31-tomcat8-openshift:1.2" JBoss Web Server 3.1 -------------------- Platform for building and running web applications on JBoss Web Server 3.1 - Tomcat v8 Tags: builder, java, tomcat8 A source build using binary input will be created The resulting image will be pushed to image stream tag "test1:latest" A binary build was created, use 'start-build --from-dir' to trigger a new build --> Creating resources with label build=test1 ... imagestream.image.openshift.io "test1" created buildconfig.build.openshift.io "test1" created --> Success
    • Hide

      One invalid example of it in the documentation is this:

      $ oc new-build --binary=true --image-stream=jboss-webserver31-tomcat8-openshift --name=test1
      error: unable to locate any images in image streams with name "jboss-webserver31-tomcat8-openshift"

      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.

      Show
      One invalid example of it in the documentation is this: $ oc new-build --binary=true --image-stream=jboss-webserver31-tomcat8-openshift --name=test1 error: unable to locate any images in image streams with name "jboss-webserver31-tomcat8-openshift" 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.

      In the documentation of Red Hat JBoss Web Server for Openshift - Red Hat JBoss Web Server 3.1 [1] is used continually the jboss-webserver OpenShift imagestream without tag. Then, it is going to try to use the imagestream with the latest version and the latest tag doesn't exist giving an error if you follow the examples of the documentation.

      If you are using OpenShift Cloud Platform 3.11, the imagestreams:

      • jboss-webserver30-tomcat7-openshift
      • jboss-webserver30-tomcat8-openshift
      • jboss-webserver31-tomcat7-openshift
      • jboss-webserver31-tomcat8-openshift

      They don't have the tag latest, as you can see below from the output of the command below:

      $ oc get is -n openshift | grep ^jboss-webserver
      jboss-webserver30-tomcat7-openshift docker-registry.default.svc:5000/openshift/jboss-webserver30-tomcat7-openshift 1.3,1.1,1.2 3 weeks ago
      jboss-webserver30-tomcat8-openshift docker-registry.default.svc:5000/openshift/jboss-webserver30-tomcat8-openshift 1.1,1.2,1.3 3 weeks ago
      jboss-webserver31-tomcat7-openshift docker-registry.default.svc:5000/openshift/jboss-webserver31-tomcat7-openshift 1.0,1.1,1.2 3 weeks ago
      jboss-webserver31-tomcat8-openshift docker-registry.default.svc:5000/openshift/jboss-webserver31-tomcat8-openshift 1.0,1.1,1.2 3 weeks ago

            dphilips@redhat.com Daniel Philips (Inactive)
            rhn-support-ocasalsa Oscar Casal Sanchez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: