$ brew update
$ brew install --devel openshift-cli
# add 172.30.0.0/16 to the insecure registries
$ docker-machine ssh
$ vi /var/lib/boot2docker/profile
# add --insecure-registry 172.30.0.0/16
$ docker-machine restart
$ oc cluster up
$ oc login -u system:admin
$ oc adm policy add-cluster-role-to-user cluster-admin developer
http://stackoverflow.com/a/32810449
https://blog.switchbit.io/openshift-cluster-up-with-docker-for-mac/#ineedmorepower
$ oc login -u developer
$ oc project myproject
# fork https://github.com/openshift/nodejs-ex
$ git clone [email protected]:luebken/nodejs-ex.git
$ cd nodejs-ex/
$ oc create -f openshift/templates/nodejs.json
$ oc patch template nodejs-example -p '{"objects[3]":spec":{"source":{"type":{"git":{"uri":"https://github.com/luebken/nodejs-ex"}}}}}}'
:+1: 1
$ oc new-app nodejs-example
# change index.html
$ git add .
$ git commit -m "a commit"
$ git push origin master
# since the local cluster is not reachable from Github we need to start builds manually
$ oc start-build nodejs-example