Details
-
Documentation
-
Resolution: Unresolved
-
Major
-
None
-
None
-
False
-
None
-
False
Description
The 6.4. Building an application image using eap-s2i-build template procedure uses different images stream versions:
- The step 1) is importing XP3 images, verify the link Importing the OpenShift image streams and templates for JBoss EAP XP. Points out to XP3 image stream
- The Step 3 should use the template from the repository branch of the imported image stream version, currently is using the one from "master" branch.
- 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 -