Install and run MySQL [https://dev.mysql.com/doc/refman/5.7/en/installing.html]
Note: For my tests, I chose to run the docker image [https://hub.docker.com/r/mysql/mysql-server/]. You can run it using the command docker run --name mysql -e MYSQL_DATABASE=example -e MYSQL_ROOT_PASSWORD=Abcd1234 -e MYSQL_ROOT_HOST=172.17.0.1 -p 3306:3306 -d mysql/mysql-server:5.7
. You can then connect and run SQL statements using the command docker exec -it mysql mysql -uroot -p
.
Build the project source code
cd $PROJECT_ROOT
mvn clean install
cd $PROJECT_ROOT
mvn wildfly:deploy
It is assumed that:
- OpenShift platform is already running, if not you can find details how to Install OpenShift at your site.
- Your system is configured for Fabric8 Maven Workflow, if not you can find a Get Started Guide
Issue the following commands:
oc login
oc new-project fuse
oc create -f src/main/kube/serviceaccount.yml
oc create -f src/main/kube/configmap.yml
oc create -f src/main/kube/secret.yml
oc secrets add sa/camel-wildfly-appraisal-sa secret/camel-wildfly-appraisal-secret
oc policy add-role-to-user view system:serviceaccount:fuse:camel-wildfly-appraisal-sa
mvn -Popenshift fabric8:deploy
There is a SoapUI project located in the src/test/soapui
folder that can be used to send in requests. The project also contains a mock Audit Service that you can use. So either start the mock server, or configure the application's properties to point to the real Audit Service.
To test the batch input process, you can use the files located in the src/test/data
folder. By default, the file poller checks the target/input
directory for files.