Skip to content

Added documentation for adding Docker build args. #3694

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 3, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions dev_guide/builds/build_strategies.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,25 @@ console], set the *Source Secret*.

. Click the *Save* button.


[[docker-strategy-build-args]]
=== Docker Build Arguments

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:

====
[source,yaml]
----
dockerStrategy:
...
buildArgs:
- name: "foo"
value: "bar"
----
====

The build arguments will be passed to Docker when a build is started.

==== Enabling Pulling and Pushing

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