Creating a Separate Build & Triggering a New Build
When the Source build strategy is invoked by oc new-app, it sets up two steps. The first step is to run the build using S2I, combining the source files with the builder image to create the runnable image. The second step is to deploy the runnable image and start up the web application. You can perform the build step separately by running the oc new-build command instead of the oc new-app command: $ oc new-build --name blog \ python:3.5~https://github.com/openshift-katacoda/blog-django-py The output looks similar, but the deploymentconfig and service resource objects are not created. When the build has completed, the runnable image created is saved away as the image stream called blog. To deploy that image, the oc new-app command is used, but this time the name of the imagestream created by the build is supplied instead of the details of the builder image and repository URL: $ oc new-app blog Triggering a New Build In the event that the source files used as input to th...