OpenShift supports application deployment by using a source from GitHub and specifying an image. A build configuration file is generated for the S2I deployment in a new pod called Build Pod. In the build configuration file, you can configure the triggers needed to automate the new build process every time a condition meets the specifications you defined. After the deployment is complete, a new image with injected source code is created automatically.
Perform the following steps to deploy an application using a source from GitHub. The sample deployment uses httpd-ex as the source.
oc login -u <user name>
oc new-project <project name>
oc new-app centos/httpd-24-centos7~https://github.com/sclorg/httpd-ex.git
Figure 12. Sample S2I deployment status
oc get buildconfig httpd-ex -o yaml