From 79a234239516b94b1b79c7ddafcc4fbe4e3ba155 Mon Sep 17 00:00:00 2001 From: Sean Mooney Date: Fri, 19 May 2017 00:20:41 +0000 Subject: enable the kolla build system to use out of tree docker files - This change introduces a docker-dir config option to enable specifying an out of tree additional docker file root dir for use with kolla build. - This change allows kolla's build system to be reused by non kolla or external project to build arbitrary docker images using jinja2 templatized docker files. Co-Authored-By: Michal (inc0) Jastrzebski Change-Id: Idbba02a8910866ef1b838e5cbac3ab230551b7e5 --- kolla/common/config.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kolla/common') diff --git a/kolla/common/config.py b/kolla/common/config.py index 2db6f5e7d..a214c1b37 100755 --- a/kolla/common/config.py +++ b/kolla/common/config.py @@ -246,6 +246,9 @@ _CLI_OPTS = [ help='Time in seconds after which any operation times out'), cfg.MultiOpt('template-override', types.String(), help='Path to template override file'), + cfg.MultiOpt('docker-dir', types.String(), + help='Path to additional docker file template directory', + short='D', default=[]), cfg.StrOpt('logs-dir', help='Path to logs directory'), cfg.BoolOpt('pull', default=True, help='Attempt to pull a newer version of the base image'), -- cgit v1.2.3