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: documentation/modules/ROOT/pages/05-build/build-templates.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ spec:
88
88
89
89
The build done by the build steps of the template is exactly same like what was done by xref:ROOT:05-build/build.adoc#build-create-build[raw build], but templates gives flexibility and ease of configuration via parameters. The template step(s) modifications are transparent to the consumers (the builds inheriting the template), the builds using the template will automatically inherit the modified steps.
90
90
91
-
[#build-template-generate-service]
91
+
[#build-template-edit-service]
92
92
=== Edit Knative service
93
93
94
94
Run the following command to create the knative service that will use the image created by the Knative build template we defined earlier.
pass:[ sed -i "s~\$destinationImageName~${DESTINATION_IMAGE_NAME}~g" service-with-build-template.yaml ]
278
267
----
279
268
280
269
[.text-center]
@@ -297,11 +286,13 @@ spec:
297
286
image: docker.io/demo/event-greeter:0.0.1 <1>
298
287
----
299
288
300
-
<1> Set from `image` parameter -- the fully qualified container image that will be pushed to the registry as part of the build --
289
+
<1> Set from `${DESTINATION_IMAGE_NAME}` environment variable -- the fully qualified container image that will be pushed to the registry as part of the build --
290
+
291
+
Refer to xref:ROOT:05-build/build.adoc#build-set-env[Build Environment Variables]
301
292
302
-
[NOTE]
293
+
[NOTE,subs="macros+"]
303
294
====
304
-
If you have skipped the xref:ROOT:05-build/build.adoc[Build] or xref:ROOT:05-build/build-templates.adoc[Build Templates] do not have the container image of `event-greeter`; then you can update the Knative serving service to use the pre-built event-greeter image available at `quay.io/rhdevelopers/knative-tutorial-event-greeter:0.0.1`
295
+
If you have skipped the xref:ROOT:{build-repo}/build.adoc[Build] or xref:ROOT:{build-repo}/build-templates.adoc[Build Templates] do not have the container image of `event-greeter`; then you can update the Knative serving service to use the pre-built event-greeter image available at `quay.io/rhdevelopers/knative-tutorial-event-greeter:0.0.1`
305
296
====
306
297
307
298
[#eventing-deploy-subscriber-service]
@@ -311,7 +302,7 @@ Navigate to tutorial chapter's `knative` folder:
pass:[ sed -i "s~\$destinationImageName~${DESTINATION_IMAGE_NAME}~g" service-with-build-template.yaml ]
133
115
----
134
116
135
117
[.text-center]
@@ -152,23 +134,18 @@ spec:
152
134
image: docker.io/demo/event-greeter:0.0.1 <1>
153
135
----
154
136
155
-
<1> Set from `image` parameter-- the fully qualified container image that will be pushed to the registry as part of the build --
137
+
<1> Set from `${DESTINATION_IMAGE_NAME}` environment variable-- the fully qualified container image that will be pushed to the registry as part of the build --
156
138
157
-
[NOTE]
139
+
Refer to xref:ROOT:05-build/build.adoc#build-set-env[Build Environment Variables]
140
+
141
+
[NOTE,subs="macros+"]
158
142
====
159
-
If you have skipped the xref:ROOT:05-build/build.adoc[Build] or xref:ROOT:05-build/build-templates.adoc[Build Templates] do not have the container image of `event-greeter`; then you can update the Knative serving service to use the pre-built event-greeter image available at `quay.io/rhdevelopers/knative-tutorial-event-greeter:0.0.1`
143
+
If you have skipped the xref:ROOT:{build-repo}/build.adoc[Build] or xref:ROOT:05-build/build-templates.adoc[Build Templates] and dont have the container image of `event-greeter`; then you can update the Knative serving service to use the pre-built event-greeter image available at `quay.io/rhdevelopers/knative-tutorial-event-greeter:0.0.1`
0 commit comments