Skip to content

Instantly share code, notes, and snippets.

@mattf
Last active January 24, 2017 23:12
Show Gist options
  • Save mattf/bfd7ea9bcfbe744c682c983076a23519 to your computer and use it in GitHub Desktop.
Save mattf/bfd7ea9bcfbe744c682c983076a23519 to your computer and use it in GitHub Desktop.
: Start up an OpenShift Origin cluster locally
oc cluster up
: Create an "oshinko" ServiceAccount, used by Oshinko to write to the OpenShift API
oc create serviceaccount oshinko
: Launch Oshinko in the current project
oc new-app -f https://raw.githubusercontent.com/radanalyticsio/oshinko-webui/master/tools/ui-template.yaml
: Authorize Oshinko to write to the OpenShift API
oc policy add-role-to-user edit -z oshinko
: Anayltical application demo - counting words by Joyce
: joyce writes text to a socket
: graaftel uses Spark Streaming to count workds from joyce
: and Flask to serve up the counts
: Start the joyce service, must be called PRODUCER
oc new-app openshift/python-27-centos7~https://github.com/mattf/joyce --name=producer
: Start the graaftel service
oc new-app radanalyticsio/radanalytics-pyspark~https://github.com/mattf/graaftel -e OSHINKO_CLUSTER_NAME=graaftel-cluster
: Expose the graaftel web UI
oc expose service graaftel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment