diff options
| author | Marcin Juszkiewicz <marcin.juszkiewicz+kolla@linaro.org> | 2022-10-06 11:40:23 +0200 |
|---|---|---|
| committer | Michal Nasiadka <mnasiadka@gmail.com> | 2022-11-08 22:03:56 +0000 |
| commit | a2854da1b3e12987f7fa7590fca3bb74ac19c53e (patch) | |
| tree | 0db0b98464fb3a70ef7f220ffe85b048db30c8da /kolla/common | |
| parent | e275875c2587696025cb6dd5851cb42b010c56ed (diff) | |
| download | kolla-a2854da1b3e12987f7fa7590fca3bb74ac19c53e.tar.gz kolla-a2854da1b3e12987f7fa7590fca3bb74ac19c53e.zip | |
Add a way to add other container engines
Add engine adapter module to allow additon of other container engines,
create one common EngineClient that would be called in all other
modules.
Based on patch by Konstantin Yarovoy <konstantin.yarovoy@tietoevry.com>
Change-Id: Ice6467086bd292af086322afc3fc4e869d89eefa
Diffstat (limited to 'kolla/common')
| -rw-r--r-- | kolla/common/config.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/kolla/common/config.py b/kolla/common/config.py index 7e06fd7f8..f6a2e6255 100644 --- a/kolla/common/config.py +++ b/kolla/common/config.py @@ -162,7 +162,8 @@ _CLI_OPTS = [ cfg.BoolOpt('skip-parents', default=False, help='Do not rebuild parents of matched images'), cfg.BoolOpt('skip-existing', default=False, - help='Do not rebuild images present in the docker cache'), + help='Do not rebuild images present in the container engine ' + 'cache'), cfg.DictOpt('build-args', help='Set docker build time variables'), cfg.BoolOpt('keep', default=False, @@ -176,7 +177,7 @@ _CLI_OPTS = [ cfg.StrOpt('network_mode', default='host', help='The network mode for Docker build. Example: host'), cfg.BoolOpt('cache', default=True, - help='Use the Docker cache when building'), + help='Use the container engine cache when building'), cfg.MultiOpt('profile', types.String(), short='p', help=('Build a pre-defined set of images, see [profiles]' ' section in config. The default profiles are:' @@ -194,14 +195,14 @@ _CLI_OPTS = [ help=('Build only images matching regex and its' ' dependencies')), cfg.StrOpt('registry', - help=('The docker registry host. The default registry host' - ' is Docker Hub')), + help=('The container image registry host. The default registry' + ' host is Docker Hub')), cfg.StrOpt('save-dependency', help=('Path to the file to store the docker image' ' dependency in Graphviz dot format')), cfg.StrOpt('format', short='f', default='json', choices=['json', 'none'], - help='Format to write the final results in'), + help='Format to write the final results in.'), cfg.StrOpt('tarballs-base', default=TARBALLS_BASE, help='Base url to OpenStack tarballs'), # NOTE(hrw): deprecate argument in Zed, remove in A-cycle @@ -214,7 +215,7 @@ _CLI_OPTS = [ ' (Note: setting to one will allow real time' ' logging)')), cfg.StrOpt('tag', default=version.cached_version_string(), - help='The Docker tag'), + help='The container image tag'), cfg.BoolOpt('template-only', default=False, help="Don't build images. Generate Dockerfile only"), cfg.IntOpt('timeout', default=120, @@ -255,6 +256,8 @@ _CLI_OPTS = [ help='Prefix prepended to image names'), cfg.StrOpt('repos-yaml', default='', help='Path to alternative repos.yaml file'), + cfg.StrOpt('engine', default='docker', choices=['docker'], + help='Container engine to build images on.') ] _BASE_OPTS = [ |
