Build the project source code
$ cd $PROJECT_ROOT
$ mvn clean install
$ cd $PROJECT_ROOT
$ mvn spring-boot:run
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 details in the Getting Started Guide
Create a new project:
$ oc new-project demo-fuse
Create the ServiceAccount:
$ oc create -f src/main/kube/serviceaccount.yml
Create the ConfigMap:
$ oc create -f src/main/kube/configmap.yml
Create the Secret:
$ oc create -f src/main/kube/secret.yml
Add the Secret to the ServiceAccount created earlier:
$ oc secrets add sa/camel-request-reply-worker-sa secret/camel-request-reply-worker-secret
Add the view role to the ServiceAccount:
$ oc policy add-role-to-user view system:serviceaccount:camel-request-reply-worker:camel-request-reply-worker-sa
The example can be built and run on OpenShift using the following goals:
$ mvn clean install fabric8:resource fabric8:build fabric8:deploy
Use the same tools/instructions for testing standalone (above). Make sure to change the host/port to point to the exposed OpenShift Route.