Demonstration on how to deploy EAP using s2i and connect to an external AMQ instance.
oc create -f openshift/operator-group.yml oc create -f openshift/operator.yml
Once the operator is running you can provision the broker and the address.
oc create -f openshift/broker.yml oc create -f openshift/address.yml
oc process -f openshift/eap74-basic-s2i.yml \ -p EAP_IMAGE_NAME=jboss-eap74-openjdk11-openshift:7.4.0 \ -p EAP_RUNTIME_IMAGE_NAME=jboss-eap74-openjdk11-runtime-openshift:7.4.0 \ -p SOURCE_REPOSITORY_URL="https://github.com/GuilhermeCamposo/demo_eap-amq.git" \ -p SOURCE_REPOSITORY_REF="main" | oc create -f -
-
Run your EAP instance using the standalone-openshift.yml. Don’t forget to substitute the host address for your AMQ Broker instance.
-
This Java project is using
wildfly-maven-plugin
. If you have a JBoss EAP running in the same host, you may use it to deploy the application to EAP:
mvn clean package wildfly:deploy -Plocal