def build_image(args): from taskgraph.docker import build_image, build_context if args["context_only"] is None: build_image(args["image_name"], args["tag"], os.environ) else: build_context(args["image_name"], args["context_only"], os.environ)
def build_image(self, image_name, tag, context_only): from taskgraph.docker import build_image, build_context try: if context_only is None: build_image(image_name, tag, os.environ) else: build_context(image_name, context_only, os.environ) except Exception: traceback.print_exc() sys.exit(1)
def build_image(self, image_name, context_only): from taskgraph.docker import build_image, build_context try: if context_only is None: build_image(image_name) else: build_context(image_name, context_only) except Exception: traceback.print_exc() sys.exit(1)