-
Notifications
You must be signed in to change notification settings - Fork 55
Using the OpenShift Client Binary (oc)
Pavan Jadda edited this page Jun 20, 2018
·
2 revisions
Execute Output of the following command
$ minishift oc-env
<Excute output commands>
Logging Into the Cluster
$ oc login -u system:admin
OpenShift provides various sample applications, such as templates, builder applications, and quickstarts. The following steps describe how to deploy a sample Node.js application from the command line.
Create a Node.js example app:
$ oc new-app https://github.com/openshift/nodejs-ex -l name=myapp
Track the build log until the app is built and deployed:
$ oc logs -f bc/nodejs-ex
Expose a route to the service:
$ oc expose svc/nodejs-ex
Access the application:
$ minishift openshift service nodejs-ex --in-browser
To stop Minishift, use the following command:
$ minishift stop