diff options
| author | Alex Schultz <aschultz@redhat.com> | 2018-04-19 16:49:06 -0600 |
|---|---|---|
| committer | Martin André <m.andre@redhat.com> | 2018-04-20 06:28:05 +0000 |
| commit | 00bdb6d01f9492f40f9091df7905f751b54c98bf (patch) | |
| tree | 042bb9b51fd44683b9cf7da90ba7545c64b82295 /kolla/common | |
| parent | da329dd7be0a4693b947272929581741906f33ad (diff) | |
| download | kolla-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/common')
| -rwxr-xr-x | kolla/common/config.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kolla/common/config.py b/kolla/common/config.py index e2520bcf1..933db4fe8 100755 --- a/kolla/common/config.py +++ b/kolla/common/config.py @@ -204,6 +204,8 @@ _CLI_OPTS = [ help='Show all available images (filtering supported)'), cfg.StrOpt('namespace', short='n', default='kolla', help='The Docker namespace name'), + cfg.StrOpt('network_mode', default=None, + help='The network mode for Docker build. Example: host'), cfg.BoolOpt('cache', default=True, help='Use the Docker cache when building'), cfg.MultiOpt('profile', types.String(), short='p', |
