From f2bded7f944ff25387d7cde1b1aa8489191de0c1 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Thu, 3 Dec 2015 20:04:28 +0800 Subject: Gen the image dependency in the Graphviz dot format By using ./tools/build.py --save-dependency a.dot to gen the Graphviz dot dependency file. Later, you can use the `dot` to draw the picture. dot -Tjpg -o a.jpg a.dot Implements: blueprint images-dependency-tree Depends-On: I8e07a1b69fab5f1c587470bfd2104aaba93f0050 Change-Id: If00f4f3fb9d0b10a07ab2abb7ffb1cd9d64902f2 --- 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 68e1f7e5e..f5d8f48d7 100644 --- a/kolla/common/config.py +++ b/kolla/common/config.py @@ -107,6 +107,9 @@ _CLI_OPTS = [ cfg.StrOpt('registry', deprecated_group='kolla-build', help=('The docker 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('type', short='t', default='binary', choices=INSTALL_TYPE_CHOICES, dest='install_type', deprecated_group='kolla-build', -- cgit v1.2.3