https://github.com/openshift/origin/blob/master/docs/cluster_up_down.md
$ brew update
$ brew install --devel openshift-cli
# add 172.30.0.0/16 to the insecure registries
$ docker-machine ssh
$ sudo vi /var/lib/boot2docker/profile
# add --insecure-registry 172.30.0.0/16
$ exit
$ 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 https://github.com/openshift/nodejs-ex
$ cd nodejs-ex/
$ hub fork
$ oc new-app -f openshift/templates/nodejs.json -p NAME=luebken-app,[email protected]:luebken/nodejs-ex.git
# 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
- The nodejs template has the following kubernetes objects: Service, Route, ImageStream, BuildConfig, DeploymentConfig
what about a
echo "oc start-build nodejs-example" >.git/hooks/post-commit
after you have clone the git repository? This will eliminate the need to manually start a build, but at the same time it will build on each commit...