Pre-requisites: Running Kafka Cluster, JDG Service, Configmap
To deploy the service to a running single-node OpenShift cluster:
$ oc login -u developer -p developer
$ oc new-project MY_PROJECT_NAME
$ mvn clean fabric8:deploy -Popenshift
== More Information You can learn more about this booster and rest of the Eclipse Vert.x runtime in the link:http://launcher.fabric8.io/docs/vertx-runtime.html[Eclipse Vert.x Runtime Guide].
NOTE: Run the set of integration tests included with this booster using mvn clean verify -Popenshift,openshift-it
.
Following ConfigMap needs to exist which is mounted to /deployments/config/app-config-properties via fabric8:deploy NAME: mission-service Key: app-config.properties
kafka.connect=localhost:9092
kafka.sub=MissionCreateCommand
kafka.pub=MissionUpdatedCommand
jdg.svc.name=datagrid-service
jdg.port=11222
jdg.app.name=datagrid-service
jdg.app.user.name=demo
jdg.app.user.password=demo
http.host=localhost
http.port=8080
Installing Datagrid-service and configmap You might want to import the streams if already not done
for resource in cache-service-template.yaml datagrid-service-template.yaml do oc create -n openshift -f https://raw.githubusercontent.com/jboss-container-images/jboss-datagrid-7-openshift-image/7.3-v1.0/services/${resource} done
in the scripts directory createResources.sh does the same as follows, which will create the data-grid service and also create a configmap for the app.
oc new-app datagrid-service -p APPLICATION_USER=demo -p APPLICATION_PASSWORD=demo -p NUMBER_OF_INSTANCES=3 -e AB_PROMETHEUS_ENABLE=true
oc expose svc/datagrid-service-ping
oc expose svc/datagrid-service
oc create -f configmap.yml
Finally run the following mvn clean fabric8:deploy -Popenshift