def METHOD_NAME():
    """
    "vendors" notary into docker by copying all of notary into the docker
    vendor directory - also appending several lines into the Dockerfile because
    it pulls down notary from github and builds the binaries
    """
    docker_notary_relpath = "vendor/src/github.com/theupdateframework/notary"
    docker_notary_abspath = os.path.join(DOCKER_DIR, docker_notary_relpath)
    print("copying notary ({0}) into {1}".format(NOTARY_DIR, docker_notary_abspath))
    def ignore_dirs(walked_dir, _):
        """
        Don't vendor everything, particularly not the docker directory
        recursively, if it happened to be in the notary directory
        """
        if walked_dir == NOTARY_DIR:
            return [".git", ".cover", "docs", "bin"]
        elif walked_dir == os.path.join(NOTARY_DIR, "fixtures"):
            return ["compatibility"]
        return []
    if os.path.exists(docker_notary_abspath):
        shutil.rmtree(docker_notary_abspath)
    shutil.copytree(
        NOTARY_DIR, docker_notary_abspath, symlinks=True, ignore=ignore_dirs)
    # hack this because docker/docker's Dockerfile checks out a particular version of notary
    # based on a tag or SHA, and we want to build based on what was vendored in
    dockerfile_addition = ("\n"
        "RUN set -x && "
        "export GO15VENDOREXPERIMENT=1 && "
        "go build -o /usr/local/bin/notary-server github.com/theupdateframework/notary/cmd/notary-server &&"
        "go build -o /usr/local/bin/notary github.com/theupdateframework/notary/cmd/notary")
    with open(os.path.join(DOCKER_DIR, "Dockerfile")) as dockerfile:
        text = dockerfile.read()
    if not text.endswith(dockerfile_addition):
        with open(os.path.join(DOCKER_DIR, "Dockerfile"), 'a+') as dockerfile:
            dockerfile.write(dockerfile_addition)
    # hack the makefile so that we tag the built image as something else so we
    # don't interfere with any other docker test builds
    with open(os.path.join(DOCKER_DIR, "Makefile"), 'r') as makefile:
        makefiletext = makefile.read()
    with open(os.path.join(DOCKER_DIR, "Makefile"), 'wb') as makefile:
        image_name = os.getenv("DOCKER_TEST_IMAGE_NAME", "notary-docker-vendor-test")
        text = re.sub("^DOCKER_IMAGE := .+$", "DOCKER_IMAGE := {0}".format(image_name),
                      makefiletext, 1, flags=re.M)
        makefile.write(text)