Red Hat Training

A Red Hat training course is available for OpenShift Container Platform

4.4.5. new-app

根据当前目录中的源代码创建新应用: https://access.redhat.com/documentation/en-us/openshift_container_platform/3.11/html-single/developer_guide/#dev-guide-new-app

$ oc new-app .

根据远程存储库中的源代码创建新应用:

$ oc new-app https://github.com/sclorg/cakephp-ex

根据私有远程存储库中的源代码创建新应用:

$ oc new-app https://github.com/youruser/yourprivaterepo --source-secret=yoursecret