def cli_create_build_image(args):
    b = BuildImageBuilder(reactor_tarball_path=args.reactor_tarball_path,
                          reactor_local_path=args.reactor_local_path,
                          reactor_remote_path=args.reactor_remote_git,
                          use_official_reactor_git=args.reactor_latest)
    try:
        b.create_image(args.dockerfile_dir_path, args.image, use_cache=args.use_cache)
    except __HOLE__:
        logger.error("build failed")
        sys.exit(1)
    sys.exit(0)
dataset/ETHPy150Open projectatomic/atomic-reactor/atomic_reactor/cli/main.py/cli_create_build_image