Skip to content

Instantly share code, notes, and snippets.

@mattf
Last active January 24, 2017 23:12

Revisions

  1. Matthew Farrellee revised this gist Jan 24, 2017. 1 changed file with 3 additions and 5 deletions.
    8 changes: 3 additions & 5 deletions graaftel.txt
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,8 @@
    : 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
    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

    @@ -17,7 +15,7 @@ oc policy add-role-to-user edit -z oshinko
    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
    oc new-app radanalyticsio/radanalytics-pyspark:pre-cli~https://github.com/mattf/graaftel

    : Expose the graaftel web UI
    oc expose service graaftel
    oc expose service graaftel
  2. Matthew Farrellee revised this gist Jan 24, 2017. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion graaftel.txt
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,10 @@
    : 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 http://goo.gl/ZU02P4
    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

  3. Matthew Farrellee revised this gist Dec 11, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion graaftel.txt
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@ 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 admin -z oshinko
    oc policy add-role-to-user edit -z oshinko

    : Anayltical application demo - counting words by Joyce
    : joyce writes text to a socket
  4. Matthew Farrellee revised this gist Nov 19, 2016. 1 changed file with 3 additions and 6 deletions.
    9 changes: 3 additions & 6 deletions graaftel.txt
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,10 @@
    : 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
    : Authorize the "oshinko" ServiceAccount to write to the OpenShift API
    oc policy add-role-to-user admin -z oshinko

    : Launch Oshinko in the current project
    oc new-app -f http://goo.gl/79RnJf
    oc new-app -f http://goo.gl/ZU02P4
    : Authorize Oshinko to write to the OpenShift API
    oc policy add-role-to-user admin -z oshinko

    : Anayltical application demo - counting words by Joyce
    : joyce writes text to a socket
  5. Matthew Farrellee revised this gist Nov 19, 2016. 1 changed file with 2 additions and 5 deletions.
    7 changes: 2 additions & 5 deletions graaftel.txt
    Original file line number Diff line number Diff line change
    @@ -1,16 +1,13 @@
    : Start up an OpenShift Origin cluster locally
    oc cluster up

    : Create an "oshinko" ServiceAccount, used by Oshinko to write to the
    : OpenShift API
    : Create an "oshinko" ServiceAccount, used by Oshinko to write to the OpenShift API
    oc create serviceaccount oshinko
    : Authorize the "oshinko" ServiceAccount to write to the OpenShift API
    oc policy add-role-to-user admin -z oshinko

    : Create the Oshinko template
    oc create -f http://goo.gl/79RnJf
    : Launch Oshinko in the current project
    oc new-app --template=oshinko
    oc new-app -f http://goo.gl/79RnJf

    : Anayltical application demo - counting words by Joyce
    : joyce writes text to a socket
  6. Matthew Farrellee revised this gist Nov 18, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion graaftel.txt
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ oc cluster up

    : Create an "oshinko" ServiceAccount, used by Oshinko to write to the
    : OpenShift API
    echo '{"apiVersion": "v1", "kind": "ServiceAccount", "metadata": {"name": "oshinko"}}' | oc create -f -
    oc create serviceaccount oshinko
    : Authorize the "oshinko" ServiceAccount to write to the OpenShift API
    oc policy add-role-to-user admin -z oshinko

  7. Matthew Farrellee revised this gist Nov 8, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion graaftel.txt
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ echo '{"apiVersion": "v1", "kind": "ServiceAccount", "metadata": {"name": "oshin
    oc policy add-role-to-user admin -z oshinko

    : Create the Oshinko template
    curl -L goo.gl/79RnJf | oc create -f -
    oc create -f http://goo.gl/79RnJf
    : Launch Oshinko in the current project
    oc new-app --template=oshinko

  8. Matthew Farrellee created this gist Oct 7, 2016.
    27 changes: 27 additions & 0 deletions graaftel.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    : Start up an OpenShift Origin cluster locally
    oc cluster up

    : Create an "oshinko" ServiceAccount, used by Oshinko to write to the
    : OpenShift API
    echo '{"apiVersion": "v1", "kind": "ServiceAccount", "metadata": {"name": "oshinko"}}' | oc create -f -
    : Authorize the "oshinko" ServiceAccount to write to the OpenShift API
    oc policy add-role-to-user admin -z oshinko

    : Create the Oshinko template
    curl -L goo.gl/79RnJf | oc create -f -
    : Launch Oshinko in the current project
    oc new-app --template=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