Beispiel #1
0
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)
Beispiel #2
0
    def build_image(self, image_name):
        from taskgraph.docker import build_image

        try:
            build_image(image_name)
        except Exception:
            traceback.print_exc()
            sys.exit(1)
Beispiel #3
0
    def build_image(self, image_name):
        from taskgraph.docker import build_image

        try:
            build_image(image_name)
        except Exception:
            traceback.print_exc()
            sys.exit(1)
 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)
Beispiel #5
0
 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)