def build_external_project_docker_image(project_src, build_integration_path): """Builds the project builder image for an external (non-OSS-Fuzz) project. Returns True on success.""" dockerfile_path = os.path.join(build_integration_path, 'Dockerfile') command = [ '-t', docker.EXTERNAL_PROJECT_IMAGE, '-f', dockerfile_path, project_src ] return helper.docker_build(command)
def build_external_project_docker_image(project_name, project_src, build_integration_path): """Builds the project builder image for an external (non-OSS-Fuzz) project. Returns True on success.""" dockerfile_path = os.path.join(build_integration_path, 'Dockerfile') tag = 'gcr.io/oss-fuzz/{project_name}'.format(project_name=project_name) command = ['-t', tag, '-f', dockerfile_path, project_src] return helper.docker_build(command)