From 7093d37f1825182366939cf64faa477040d29aa2 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Fri, 8 Jan 2016 10:13:39 +0800 Subject: Expose the docker build_arg to build.py With this implement, we can add variables at building stage. For example, add HTTP_PROXY and NO_PROXY when needed like below. build.py --build-args \ HTTP_PROXY:http://127.0.0.1:8080,NO_PROXY:127.0.0.1 More info about build_arg, pls check[0] [0] https://docs.docker.com/engine/reference/commandline/build/#set-build-time-variables-build-arg DocImpact Implements: bp add-buildargs Change-Id: I29ed7f536670fef59d697603dc562a69d90743c9 --- kolla/common/config.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kolla/common') diff --git a/kolla/common/config.py b/kolla/common/config.py index bc821e025..fe6a33d5e 100644 --- a/kolla/common/config.py +++ b/kolla/common/config.py @@ -63,6 +63,8 @@ _CLI_OPTS = [ cfg.BoolOpt('debug', short='d', default=False, deprecated_group='kolla-build', help='Turn on debugging log level'), + cfg.DictOpt('build-args', + help='Set docker build time variables'), cfg.StrOpt('include-header', short='i', deprecated_group='kolla-build', help=('Path to custom file to be added at ' -- cgit v1.2.3