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-notification-sa secret/camel-wildfly-notification-secret
oc policy add-role-to-user view system:serviceaccount:fuse:camel-wildfly-notification-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.
You will also need to start the FakeSMTP server or configure the application's properties to point to a real SMTP server.
There is a properties file src/main/kube/openshift-application.properties
file that contains OpenShift secret properties used by the application. If you need to change them, you can do so and then Base64 encode the file (ie, base64 -i src/main/kube/openshift-application.properties
), and place the output of that in the 'application.properties' section of the src/main/kube/secret.yml
file.