aboutsummaryrefslogtreecommitdiff
path: root/kolla/cmd
diff options
context:
space:
mode:
authorJeffrey Zhang <zhang.lei.fly@gmail.com>2016-01-08 10:13:39 +0800
committerPaul Bourke <paul.bourke@oracle.com>2016-01-18 11:42:00 +0000
commit7093d37f1825182366939cf64faa477040d29aa2 (patch)
tree4ade0243868bac6f8297499fb235a356b36ad8fd /kolla/cmd
parentd4490ea2bc62bbd3715f9804e1395671854675b2 (diff)
downloadkolla-7093d37f1825182366939cf64faa477040d29aa2.tar.gz
kolla-7093d37f1825182366939cf64faa477040d29aa2.zip
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
Diffstat (limited to 'kolla/cmd')
-rwxr-xr-xkolla/cmd/build.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py
index e7c54a435..aff472d83 100755
--- a/kolla/cmd/build.py
+++ b/kolla/cmd/build.py
@@ -261,7 +261,8 @@ class WorkerThread(Thread):
nocache=self.nocache,
rm=True,
pull=pull,
- forcerm=self.forcerm):
+ forcerm=self.forcerm,
+ buildargs=self.conf.build_args):
stream = json.loads(response.decode('utf-8'))
if 'stream' in stream: