You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/applications-create-using-cli-source-code.adoc
+16-3
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,9 @@ With the `new-app` command you can create applications from source code in a loc
5
5
6
6
The `new-app` command creates a build configuration, which itself creates a new application image from your source code. The `new-app` command typically also creates a `Deployment` object to deploy the new image, and a service to provide load-balanced access to the deployment running your image.
7
7
8
-
{product-title} automatically detects whether the pipelineor source build strategy should be used, and in the case of source builds, detects an appropriate language builder image.
8
+
{product-title} automatically detects whether the pipeline, source, or docker build strategy should be used, and in the case of source build, detects an appropriate language builder image.
9
9
10
+
[id="local_{context}"]
10
11
== Local
11
12
12
13
To create an application from a Git repository in a local directory:
If you use a local Git repository, the repository must have a remote named `origin` that points to a URL that is accessible by the {product-title} cluster. If there is no recognized remote, running the `new-app` command will create a binary build.
22
23
====
23
24
25
+
[id="remote_{context}"]
24
26
== Remote
25
27
26
28
To create an application from a remote Git repository:
@@ -57,11 +59,21 @@ Also, when specifying a remote URL, you can specify a Git branch to use by appen
If a Jenkins file exists in the root or specified context directory of the source repository when creating a new application, {product-title} generates a pipeline build strategy. Otherwise, it generates a source build strategy.
65
+
{product-title} automatically determines which build strategy to use by detecting certain files:
63
66
64
-
Override the build strategy by setting the `--strategy` flag to either `pipeline` or `source`.
67
+
* If a Jenkins file exists in the root or specified context directory of the source repository when creating a new application, {product-title} generates a pipeline build strategy.
68
+
+
69
+
[NOTE]
70
+
====
71
+
The `pipeline` build strategy is deprecated; consider using {pipelines-title} instead.
72
+
====
73
+
* If a Dockerfile exists in the root or specified context directory of the source repository when creating a new application, {product-title} generates a docker build strategy.
74
+
* If neither a Jenkins file nor a Dockerfile is detected, {product-title} generates a source build strategy.
75
+
76
+
Override the automatically detected build strategy by setting the `--strategy` flag to `docker`, `pipeline`, or `source`.
The `oc` command requires that files containing build sources are available in a remote Git repository. For all source builds, you must use `git remote -v`.
74
86
====
75
87
88
+
[id="language-detection_{context}"]
76
89
== Language detection
77
90
78
91
If you use the source build strategy, `new-app` attempts to determine the language builder to use by the presence of certain files in the root or specified context directory of the repository:
0 commit comments