aboutsummaryrefslogtreecommitdiff
path: root/kolla/image
diff options
context:
space:
mode:
authorAlex Schultz <aschultz@redhat.com>2018-04-19 16:49:06 -0600
committerMartin André <m.andre@redhat.com>2018-04-20 06:28:05 +0000
commit00bdb6d01f9492f40f9091df7905f751b54c98bf (patch)
tree042bb9b51fd44683b9cf7da90ba7545c64b82295 /kolla/image
parentda329dd7be0a4693b947272929581741906f33ad (diff)
downloadkolla-00bdb6d01f9492f40f9091df7905f751b54c98bf.tar.gz
kolla-00bdb6d01f9492f40f9091df7905f751b54c98bf.zip
Add network_mode for image building
Add the ability to specify a different network_mode when running the image builds. Under the covers the default is to use bridge networking but if that is unavailable or a user would like to specify a different networking method they can now do so using the [DEFAULT]\network_mode configuration. Change-Id: I1d2398273b57ca4d52bbfacbc896ffecc58bc54b
Diffstat (limited to 'kolla/image')
-rwxr-xr-xkolla/image/build.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/kolla/image/build.py b/kolla/image/build.py
index 2f19baadc..cd59aa260 100755
--- a/kolla/image/build.py
+++ b/kolla/image/build.py
@@ -570,6 +570,7 @@ class BuildTask(DockerTask):
tag=image.canonical_name,
nocache=not self.conf.cache,
rm=True,
+ network_mode=self.conf.network_mode,
pull=pull,
forcerm=self.forcerm,
buildargs=buildargs):