OpenShift Create an Application from a Git Repository
If a source code URL is specified, OpenShift will pull the source code and convert it into an image to run inside a pod, attempting to guess what build strategy to use. Local source must be in a Git repository that has a remote repository that the server can see. new-app will create a build configuration and a deployment configuration. A service will be connected to the first public port of the app. oc status can be used to check on progress.
oc new-app https://github.com/test/testapp.git
Successful creation output:
Forcing a source-to-image build based on repository sources:
oc new-app nodejs:latest~https://github.com/wkulhanek/ocp-appdev-helloworld-nodejs.git \ --strategy=source --name=hello-nodejs