Fuse (on Spring Boot) to create a prototype to integrate JPA (with external DB), JMA (AMQ Broker), Drools (remote invocation), Rest APIs, Swagger.
- install OKD 3.11 following these instructions
oc cluster upoc login -u system:adminoc project openshift
- Set up and download an Openshift registry service account following the instructions from https://access.redhat.com/RegistryAuthentication#registry-service-accounts-for-shared-environments-4
oc create -f <secret>.yaml(<secret>is the name of the downloaded Openshift registry service account)oc secrets link default <secret> --for=pulloc secrets link builder <secret> --for=pull
- Download from https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?downloadType=distributions&product=rhdm&productChanged=yes and unzip
oc create -f ./Downloads/rhdm-7.3-openshift-templates/rhdm73-image-streams.yamloc import-image rhdm73-decisioncentral-openshift:1.0oc import-image rhdm73-kieserver-openshift:1.0
oc replace --force -f https://raw.githubusercontent.com/jboss-container-images/jboss-amq-7-broker-openshift-image/73-7.3.0.GA/amq-broker-7-image-streams.yamloc import-image amq-broker-7/amq-broker-73-openshift --from=registry.redhat.io/amq-broker-7/amq-broker-73-openshift --confirmfor template in amq-broker-73-basic.yaml amq-broker-73-ssl.yaml amq-broker-73-custom.yaml amq-broker-73-persistence.yaml amq-broker-73-persistence-ssl.yaml amq-broker-73-persistence-clustered.yaml amq-broker-73-persistence-clustered-ssl.yaml; do oc replace --force -f https://raw.githubusercontent.com/jboss-container-images/jboss-amq-7-broker-openshift-image/73-7.3.0.GA/templates/${template}; done
Instructions from https://access.redhat.com/documentation/en-us/red_hat_fuse/7.3/html-single/fuse_on_openshift_guide/index#get-started-admin-install
BASEURL=https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.fuse-730065-redhat-00002oc create -n openshift -f ${BASEURL}/fis-image-streams.jsonfor template in eap-camel-amq-template.json eap-camel-cdi-template.json eap-camel-cxf-jaxrs-template.json eap-camel-cxf-jaxws-template.json eap-camel-jpa-template.json karaf-camel-amq-template.json karaf-camel-log-template.json karaf-camel-rest-sql-template.json karaf-cxf-rest-template.json spring-boot-camel-amq-template.json spring-boot-camel-config-template.json spring-boot-camel-drools-template.json spring-boot-camel-infinispan-template.json spring-boot-camel-rest-sql-template.json spring-boot-camel-teiid-template.json spring-boot-camel-template.json spring-boot-camel-xa-template.json spring-boot-camel-xml-template.json spring-boot-cxf-jaxrs-template.json spring-boot-cxf-jaxws-template.json ; do oc create -n openshift -f https://raw.githubusercontent.com/jboss-fuse/application-templates/application-templates-2.1.fuse-730065-redhat-00002/quickstarts/${template}; done
- click on
Create Projectbutton to create a new project - use
migration-analyticsas value for the name - once the project has been created and added to the list of the available project, click on
migration-analytics - from the
migration-analyticsOverview page, click onImport YAML / JSONbutton - copy and paste the content of the analytics_template.json (using the
Rawbutton will let you have the plain text version of this file) - click on
Createbutton - check that
Process the templateis selected (no need to selectSave template) - click on
Continuebutton - click on
Createbutton (No need to change the form values unless the user wants to customize them)
oc login -u developeroc new-project migration-analyticsoc create -f <secret>.yamloc secrets link default <secret> --for=pulloc secrets link builder <secret> --for=pulloc process -f https://raw.githubusercontent.com/project-xavier/xavier-integration/master/src/main/resources/okd/analytics_template.json| oc create -f -
- go to Application -> Routes page and click on the URL in the
Hostnamecolumn beside themyapp-rhdmcentrservice - login with
adminUser-SxNhwF2! - click on
Designlink - click on
Import Projectbutton - in the
Repository URLfield pastehttps://github.com/project-xavier/xavier-analytics.git - select
sample-analyticsbox and click theOKbutton on the upper right side - once the import has finished, click the
Build & Installbutton from the upper rightBuildmenu - once the build has been successfully done, click on the
Deploybutton
- Go to Resources -> Secrets page and select
postgresqlsecret for the list of the secrets - Select
Reveal Secretlink to get thedatabase-namevalue - Go to PostgreSQL pod's
Terminaltab to log in doingpsql <database-name> - To get the report entries persisted execute
select * from report_data_model; - To DELETE ALL the report entries execute
truncate table report_data_model;
AMQ Web Console
To enable the DEBUG level for logging, please add the environment variable logging.level.org (or whatever package you want) with value DEBUG to the the analytics-integration deployment configuration.
oc delete all,pvc,secrets -l application=migration-analytics -n migration-analytics