equal
deleted
inserted
replaced
74 print('executing: %r' % args) |
74 print('executing: %r' % args) |
75 p = subprocess.Popen(args, stdin=subprocess.PIPE) |
75 p = subprocess.Popen(args, stdin=subprocess.PIPE) |
76 p.communicate(input=dockerfile) |
76 p.communicate(input=dockerfile) |
77 if p.returncode: |
77 if p.returncode: |
78 raise subprocess.CalledProcessException( |
78 raise subprocess.CalledProcessException( |
79 p.returncode, 'failed to build docker image: %s %s' \ |
79 p.returncode, 'failed to build docker image: %s %s' |
80 % (p.stdout, p.stderr)) |
80 % (p.stdout, p.stderr)) |
81 |
81 |
82 def command_build(args): |
82 def command_build(args): |
83 build_args = [] |
83 build_args = [] |
84 for arg in args.build_arg: |
84 for arg in args.build_arg: |