Merge branch 'master' of https://git.clkl.de/agp8x/docker-update
commit
04f6d73ea0
|
|
@ -16,7 +16,6 @@ def find_updates(image_ref, usages):
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def main(args):
|
def main(args):
|
||||||
updates = {}
|
updates = {}
|
||||||
images = docker_compose.start(args.compose_files, args.ignore)
|
images = docker_compose.start(args.compose_files, args.ignore)
|
||||||
|
|
@ -27,20 +26,19 @@ def main(args):
|
||||||
continue
|
continue
|
||||||
updates[image_ref] = find_updates(image_ref, images[image][tag])
|
updates[image_ref] = find_updates(image_ref, images[image][tag])
|
||||||
for usage in images[image][tag]:
|
for usage in images[image][tag]:
|
||||||
if "base_image" in usage:
|
if not "base_images" in usage:
|
||||||
continue
|
continue
|
||||||
for base in usage["base_image"]:
|
for base in usage["base_images"]:
|
||||||
if base in updates:
|
if base in updates:
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
info = {
|
info = {
|
||||||
"base_image": True,
|
"is_base_image": True,
|
||||||
"path:" images[image][tag]["path"],
|
"path": usage["path"],
|
||||||
"service_name": images[image][tag]["service_name"]
|
"service_name": usage["service_name"]
|
||||||
}
|
}
|
||||||
updates[base] = find_updates(base, info)
|
updates[base] = find_updates(base, info)
|
||||||
|
|
||||||
|
|
||||||
if args.output:
|
if args.output:
|
||||||
with open(args.output, "w") as out:
|
with open(args.output, "w") as out:
|
||||||
json.dump(updates, out, indent=1, sort_keys=True)
|
json.dump(updates, out, indent=1, sort_keys=True)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue