July 2018
Intermediate to advanced
504 pages
11h 34m
English
The first and most essential command to run in OpenShift is oc new-app. This command is similar to Kubernetes's kubectl run, but oc new-app is way more powerful and works a little bit differently. We are going to show you how oc new-app works in detail later in this chapter.
The best way to test out the oc new-app command is to create a new project and then run it over there:
$ oc new-project project1Now using project "project1" on server "https://127.0.0.1:8443".You can add applications to this project with the 'new-app' command. For example, try: oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-ex.gitto build a new example application in Ruby.
The command output tells us to run the ...