Skip to content

Commit b1dc755

Browse files
authored
Merge pull request #3694 from oatmealraisin/rymurphy/docker-build-args
Added documentation for adding Docker build args.
2 parents af397df + 93e6ccf commit b1dc755

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

dev_guide/builds/build_strategies.adoc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,25 @@ console], set the *Source Secret*.
323323

324324
. Click the *Save* button.
325325

326+
327+
[[docker-strategy-build-args]]
328+
=== Docker Build Arguments
329+
330+
To set link:http://docs.docker.com/v1.7/reference/api/hub_registry_spec/#docker-registry-1-0[Docker build arguments], add entries to the `BuildArgs` array, which is located in the `dockerStrategy` definition of the `BuildConfig`. For example:
331+
332+
====
333+
[source,yaml]
334+
----
335+
dockerStrategy:
336+
...
337+
buildArgs:
338+
- name: "foo"
339+
value: "bar"
340+
----
341+
====
342+
343+
The build arguments will be passed to Docker when a build is started.
344+
326345
==== Enabling Pulling and Pushing
327346

328347
Enable pulling to a private registry by setting the `Pull Secret` in the build

0 commit comments

Comments
 (0)