Skip to content

Latest commit

 

History

History

account-location-event-service

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

account-location-event-service

The application is a Continuous Query Spring Data for GemFire example

Demo Instructions

Run Script to run GemFire in Docker

If Not already running

./deployments/local/scripts/docker/start-docker-gemfire.sh

Run Service in Docker

docker run --rm -it --name account-location-event-service -e "server.port=6001" -e "spring.data.gemfire.pool.default.locators=gf-locator[10334]" --network=gemfire-cache cloudnativedata/account-location-event-service:0.0.1-SNAPSHOT

Use applications/account-service to Post data with the following PayLoad

{
  "id": "VMware1",
  "name": "VMware"
}

View data Management Console

If not started see

./deployments/local/scripts/docker/start-gmc-gideon-console.sh
open http://localhost:8080/

Docker building image

The following are the steps to build a docker image

mvn install
cd applications/account-location-event-service
mvn spring-boot:build-image

Example for tagging and pushing to docker hub

docker tag account-location-event-service:0.0.1-SNAPSHOT cloudnativedata/account-location-event-service:0.0.1-SNAPSHOT
docker push cloudnativedata/account-location-event-service:0.0.1-SNAPSHOT