Giter Club home page Giter Club logo

equoid-openshift's Introduction

Equoid Openshift Setup

To run the equoid system, be certain you have access to a cluster and are logged in, you then can use the start.sh script as follows:

start.sh <PROJECT_NAME>

for purposes of this document PROJECT_NAME will be equoid.

If interested in the system setup steps, the following instructions can be followed:

  1. Make certain you have oc client in version 3.7:
oc version
# oc v3.7.0+7ed6862
  1. (Local only) start the local cluster:
oc cluster up
  1. Log in to your cluster. For this example we'll log in as developer:
oc login -u developer
  1. Create a new project:
oc new-project equoid
  1. Create the JBoss image streams needed for AMQ-P and publisher:
oc create -f https://raw.githubusercontent.com/jboss-openshift/application-templates/master/openjdk/openjdk18-image-stream.json
oc create -f https://raw.githubusercontent.com/jboss-openshift/application-templates/master/amq/amq63-image-stream.json
  1. Create the AMQ-P template:
oc create -n openshift -f \
  https://raw.githubusercontent.com/jboss-openshift/application-templates/master/amq/amq63-basic.json
  1. Instantiate the AMQ-P template:
oc new-app --template=amq63-basic \
  -p MQ_PROTOCOL=amqp \
  -p MQ_QUEUES=salesq \
  -p MQ_USERNAME=daikon \
  -p MQ_PASSWORD=daikon \
  -p IMAGE_STREAM_NAMESPACE=equoid  
  1. Create radanalytics.io resources:
oc create -f https://radanalytics.io/resources.yaml
  1. Create the Infinispan template:
oc create -f https://raw.githubusercontent.com/infinispan/infinispan-openshift-templates/master/templates/infinispan-ephemeral.json
  1. Instantiate the Infinispan template:
oc new-app --template=infinispan-ephemeral \
  -l app=datagrid \
  -p APPLICATION_NAME=datagrid \
  -p NAMESPACE=equoid \
  -p APPLICATION_USER=daikon \
  -p APPLICATION_PASSWORD=daikon \
  -p MANAGEMENT_USER=daikon \
  -p MANAGEMENT_PASSWORD=daikon 
  1. Create the data handler app (consumer of the events):
oc new-app --template=oshinko-scala-spark-build-dc \
  -l app=handler \
  -p SBT_ARGS=assembly \
  -p OSHINKO_CLUSTER_NAME=sparky \
  -p APPLICATION_NAME=equoid-data-handler \
  -p GIT_URI=https://github.com/eldritchjs/equoid-data-handler \
  -p APP_MAIN_CLASS=io.radanalytics.equoid.dataHandler \
  -p jdgHost=datagrid-hotrod \
  -p jdgPort=11222 \
  -p SPARK_OPTIONS='--driver-java-options=-Dvertx.cacheDirBase=/tmp'
  1. Create the data publisher app (producer of the events):
oc new-app --allow-missing-imagestream-tags \
  -l app=publisher \
  --image-stream=equoid/redhat-openjdk18-openshift:1.3 \
  https://github.com/eldritchjs/equoid-data-publisher 
  1. (Optional) create infinispan-dump app for periodic dumping of the contents of the Infinispan cache:
oc new-app --allow-missing-imagestream-tags \
  -l app=infinispan-dump \
  --image-stream=equoid/redhat-openjdk18.openshift:1.3 \
  https://github.com/eldritchjs/infinispan-dump

equoid-openshift's People

Contributors

eldritchjs avatar jkremser avatar

Stargazers

 avatar

Watchers

Erik Erlandson avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.