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

Starting a new build

If an application's source code was updated, you can trigger the rebuild process by running the oc start-build command. The build itself is managed by the build configuration.

First, we need to gather information on all available build configurations:

$ oc get bcNAME    TYPE   FROM       LATESTphpinfo Source Git@master 1

As you can see, we only have one build, phpinfo, and it was deployed only once; hence, the number 1.

Let's start a new build, as follows:

$ oc start-build phpinfobuild "phpinfo-2" started$ oc get podNAME             READY  STATUS    RESTARTS AGEphpinfo-1-build  0/1    Completed 0        2hphpinfo-1-h9xt5  1/1    Running   0        2hphpinfo-2-build  0/1    Init:0/2  0        3s

OpenShift started a new build, versioned as 2, which is present in the names of the pods ...

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