install.py
def docker_build(packaging_params):
    """
    Generate and run a command like:
    docker build -t youruser/fetch-aws-keys .

    - The dockerhub user will be discovered from an environment variable
    - The dockerhub repo name will be disovered from the last path component of the current directory
    """

    dockerhub_user = discover_dockerhub_user()
    dockerhub_repo = discover_dockerhub_repo()

    # the Dockerfile lives in the parent directory of the current directory, so copy it into the
    # current directory
    cwd = os.getcwd()
    parent = os.path.dirname(cwd)
    src_dockerfile = os.path.join(parent, "Dockerfile")
    dest_dockerfile = "Dockerfile"
    shutil.copyfile(src_dockerfile, dest_dockerfile)

    # Build docker image
    subprocess.check_call("docker build -t {}/{}:{} .".format(dockerhub_user, dockerhub_repo, packaging_params.dockerTag), shell=True)

    # Delete the Dockerfile copy that is no longer needed
    os.remove(dest_dockerfile)

    Generate and run a command like:
    docker build -t youruser/fetch-aws-keys .

    - The dockerhub user will be discovered from an environment variable
    - The dockerhub repo name will be disovered from the last path component of the current directory
    
Generate and run a command like:
docker build -t youruser/fetch-aws-keys .

The dockerhub user will be discovered from an environment variable
The dockerhub repo name will be disovered from the last path component of the current directory
Generate and run a command like : docker build - t youruser / fetch - aws - keys . The dockerhub user will be discovered from an environment variable The dockerhub repo name will be disovered from the last path component of the current directory
def docker_build(packaging_params):
    dockerhub_user = discover_dockerhub_user()
    dockerhub_repo = discover_dockerhub_repo()
    cwd = os.getcwd()
    parent = os.path.dirname(cwd)
    src_dockerfile = os.path.join(parent, "Dockerfile")
    dest_dockerfile = "Dockerfile"
    shutil.copyfile(src_dockerfile, dest_dockerfile)
    subprocess.check_call("docker build -t {}/{}:{} .".format(dockerhub_user, dockerhub_repo, packaging_params.dockerTag), shell=True)
    os.remove(dest_dockerfile)
def docker_build ( packaging_params ) : dockerhub_user = discover_dockerhub_user ( ) dockerhub_repo = discover_dockerhub_repo ( ) cwd = os . getcwd ( ) parent = os . path . dirname ( cwd ) src_dockerfile = os . path . join ( parent , "Dockerfile" ) dest_dockerfile = "Dockerfile" shutil . copyfile ( src_dockerfile , dest_dockerfile ) subprocess . check_call ( "docker build -t {}/{}:{} ." . format ( dockerhub_user , dockerhub_repo , packaging_params . dockerTag ) , shell = True ) os . remove ( dest_dockerfile )
Generate and run a command like:
docker build -t youruser/fetch-aws-keys .
Generate and run a command like : docker build - t youruser / fetch - aws - keys .
"""
    Generate and run a command like:
    docker build -t youruser/fetch-aws-keys .

    - The dockerhub user will be discovered from an environment variable
    - The dockerhub repo name will be disovered from the last path component of the current directory
    """ # the Dockerfile lives in the parent directory of the current directory, so copy it into the # current directory # Build docker image # Delete the Dockerfile copy that is no longer needed
packaging_params