Пример #1
0
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)
Пример #2
0
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)