|
6 | 6 | [id="builds-define-build-inputs_{context}"] |
7 | 7 | = Build inputs |
8 | 8 |
|
9 | | -A build input provides source content for builds to operate on. You can use the following build inputs to provide sources in {product-title}, listed in order of precedence: |
| 9 | +[role="_abstract"] |
| 10 | +Use different build inputs in {product-title} to provide source content for your builds. Understanding the order of precedence helps ensure your builds use the correct sources. |
| 11 | + |
| 12 | +The following build inputs are available and listed in order of precedence: |
10 | 13 |
|
11 | 14 | ifndef::openshift-online[] |
12 | 15 | * Inline Dockerfile definitions |
@@ -55,24 +58,26 @@ The following example of a source definition includes multiple input types and a |
55 | 58 | ---- |
56 | 59 | source: |
57 | 60 | git: |
58 | | - uri: https://github.com/openshift/ruby-hello-world.git <1> |
| 61 | + uri: https://github.com/openshift/ruby-hello-world.git |
59 | 62 | ref: "master" |
60 | 63 | images: |
61 | 64 | - from: |
62 | 65 | kind: ImageStreamTag |
63 | 66 | name: myinputimage:latest |
64 | 67 | namespace: mynamespace |
65 | 68 | paths: |
66 | | - - destinationDir: app/dir/injected/dir <2> |
| 69 | + - destinationDir: app/dir/injected/dir |
67 | 70 | sourcePath: /usr/lib/somefile.jar |
68 | | - contextDir: "app/dir" <3> |
| 71 | + contextDir: "app/dir" |
69 | 72 | ifndef::openshift-online[] |
70 | | - dockerfile: "FROM centos:7\nRUN yum install -y httpd" <4> |
| 73 | + dockerfile: "FROM centos:7\nRUN yum install -y httpd" |
71 | 74 | endif::[] |
72 | 75 | ---- |
73 | | -<1> The repository to be cloned into the working directory for the build. |
74 | | -<2> `/usr/lib/somefile.jar` from `myinputimage` is stored in `<workingdir>/app/dir/injected/dir`. |
75 | | -<3> The working directory for the build becomes `<original_workingdir>/app/dir`. |
| 76 | +where: |
| 77 | + |
| 78 | +`uri`:: Specifies the repository to be cloned into the working directory for the build. |
| 79 | +`destinationDir`:: Specifies the repository to be cloned into the working directory for the build. |
| 80 | +`contextDir`:: Specifies the working directory for the build becomes `<original_workingdir>/app/dir`. |
76 | 81 | ifndef::openshift-online[] |
77 | | -<4> A Dockerfile with this content is created in `<original_workingdir>/app/dir`, overwriting any existing file with that name. |
| 82 | +`dockerFile`:: A Dockerfile with this content is created in `<original_workingdir>/app/dir`, overwriting any existing file with that name. |
78 | 83 | endif::[] |
0 commit comments