Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-24515

EAP Operator procedure uses different images stream versions

    XMLWordPrintable

Details

    • False
    • None
    • False

    Description

      The 6.4. Building an application image using eap-s2i-build template procedure uses different images stream versions:

      • The step 4 is specifying the XP1 images:
      oc process eap-s2i-build \
        -p APPLICATION_IMAGE=my-app \
        -p EAP_IMAGE=jboss-eap-xp1-openjdk11-openshift:1.0 \
        -p EAP_RUNTIME_IMAGE=jboss-eap-xp1-openjdk11-runtime-openshift:1.0 \
        -p EAP_IMAGESTREAM_NAMESPACE=$(oc project -q) \
        -p SOURCE_REPOSITORY_URL=https://github.com/jboss-developer/jboss-eap-quickstarts.git \
        -p SOURCE_REPOSITORY_REF=xp-1.0.x \
        -p CONTEXT_DIR=microprofile-config | oc create -f - 
      

      The current procedure does't work since the images don't match.

       

       

      Procedure must be fixed and use images, templates and building procedure that matches the same versions, otherwise the application won't be built frustrating the reader. For example the latest XP images. For XP 4 images and templates are:

      1. Importing the latest OpenShift imagestreams and templates for JBoss EAP XP

      oc replace --force \
      -f https://raw.githubusercontent.com/jboss-container-images/jboss-eap-openshift-templates/eap-xp4/eap-xp4-openjdk11-image-stream.json
      

      2. Use S2I build template to build an application image based on S2I:

      oc replace --force \
      -f https://raw.githubusercontent.com/jboss-container-images/jboss-eap-openshift-templates/eap-xp4/eap-s2i-build.yaml
      

      3. Build the image:

      oc process eap-s2i-build \
        -p APPLICATION_IMAGE=my-app \
        -p EAP_IMAGE=jboss-eap-xp4-openjdk11-openshift:latest \
        -p EAP_RUNTIME_IMAGE=jboss-eap-xp4-openjdk11-runtime-openshift:latest \
        -p EAP_IMAGESTREAM_NAMESPACE=$(oc project -q) \
        -p SOURCE_REPOSITORY_URL=https://github.com/jboss-developer/jboss-eap-quickstarts.git \
        -p SOURCE_REPOSITORY_REF=XP_4.0.0.GA \
        -p CONTEXT_DIR=microprofile-config | oc create -f -
      

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            yborgess1@redhat.com Yeray Borges Santana
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: