Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalized the geo-spatial app #11

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/target/
.classpath
.project
.settings
.tern-project
deployments
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# Sample application for OpenShift 3

This sample application will create and deploy a JBoss EAP application server as well as a MongoDB database. The sample application will display a map and perform geospatial queries to populate the map with all Major League Baseball stadiums in the United States.
This sample application will create and deploy a JBoss EAP application server as well as a MongoDB database. The sample application will display a map and perform geospatial queries to populate the map with geo-spatial data such as League Baseball stadiums in the United States.


## Quick instructions to just get this working on an OpenShift 3 deployment as a normal user

````
$ oc login https://yourOpenShiftServer
$ oc new-project mlbparks
$ oc create -f https://raw.githubusercontent.com/gshipley/openshift3mlbparks/master/mlbparks-template.json
$ oc new-app mlbparks
$ oc new-project geoapp
$ oc new-app eap64-mongodb-s2i \
-p APPLICATION_NAME=mlbparks \
-p SOURCE_REPOSITORY_URL=https://github.com/siamaksade/openshift3geoapp.git \
-p SOURCE_REPOSITORY_REF=master \
-p CONTEXT_DIR=.

````
Once the application is deployed and running, you can also scale the number of EAP pods to 3 with the following commands:

Expand All @@ -22,6 +26,11 @@ $ oc scale --replicas=3 rc mlbparks-1
Load the template with cluster-admin user:

````
# oc create -f https://raw.githubusercontent.com/gshipley/openshift3mlbparks/master/mlbparks-template.json -n openshift
$ oc create -f https://raw.githubusercontent.com/siamaksade/openshift3geoapp/master/geoapp-template.json -n openshift
$ oc new-app geoapp
````

## Application Configuration
In order to change the dataset displayed on the map, modify _src/main/resources/config.properties_ to point to the JSON file containing the data
and update the popup template to match the JSON fields.

Loading