aboutsummaryrefslogtreecommitdiff
path: root/kolla/cmd
diff options
context:
space:
mode:
authorPaul Bourke <paul.bourke@oracle.com>2017-01-27 17:25:56 +0000
committerDave Walker <email@daviey.com>2017-03-29 17:48:58 +0000
commite5410950c4cd3f89bef44f07f354cd71d8038105 (patch)
tree259a873a64992778d16120c0c89f2511d817d329 /kolla/cmd
parent2c801637e667939c6525b48d5d507da64b3fbaff (diff)
downloadkolla-e5410950c4cd3f89bef44f07f354cd71d8038105.tar.gz
kolla-e5410950c4cd3f89bef44f07f354cd71d8038105.zip
Allow the use of previously built parent images
Consider the case where you have a set of tagged / released images to production, and you want to apply a small hotfix, security patch, etc. to one of them, say keystone-ssh. Rebuilding keystone-ssh will cause a rebuild of base, openstack-base, and keystone-base, potentially pulling in updated packages / new dependencies, unless you have access to the exact machine they were previously built on. Ideally you want to use the exact parent images that are in production. This patch adds a new build argument '--skip-parents', which will result in only the image(s) specified by the regex and their children to be built. Parents are expected to exist either on machine or in a registry. Change-Id: I79d5f0b422f48d2dc36ae85dfa21668cf8177837 Implements: blueprint image-build-depth
Diffstat (limited to 'kolla/cmd')
-rwxr-xr-xkolla/cmd/build.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py
index 4674de762..69e1138e9 100755
--- a/kolla/cmd/build.py
+++ b/kolla/cmd/build.py
@@ -29,7 +29,8 @@ from kolla.image import build
def main():
statuses = build.run_build()
if statuses:
- bad_results, good_results, unmatched_results = statuses
+ (bad_results, good_results, unmatched_results,
+ skipped_results) = statuses
if bad_results:
return 1
return 0