Skip to Content
Learn OpenShift
book

Learn OpenShift

by Denis Zuev, Artemii Kropachev, Aleksey Usov
July 2018
Intermediate to advanced
504 pages
11h 34m
English
Packt Publishing
Content preview from Learn OpenShift

Creating new applications in OpenShift

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Operating OpenShift

Operating OpenShift

Rick Rackow, Manuel Dewald
OpenShift for Developers, 2nd Edition

OpenShift for Developers, 2nd Edition

Joshua Wood, Brian Tannous
Kubernetes: Up and Running, 2nd Edition

Kubernetes: Up and Running, 2nd Edition

Brendan Burns, Joe Beda, Kelsey Hightower

Publisher Resources

ISBN: 9781788992329Supplemental Content