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
: Launch Oshinko in the current project
oc new-app -f http://goo.gl/ZU02P4
: 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:pre-cli~https://github.com/mattf/graaftel
: 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