How to use the reprounzip-docker.reprounzip.unpackers.docker.ContainerUploader function in reprounzip-docker

To help you get started, we’ve selected a few reprounzip-docker examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github VIDA-NYU / reprozip / reprounzip-docker / reprounzip / unpackers / docker.py View on Github external
def docker_upload(args):
    """Replaces an input file in the container.
    """
    target = Path(args.target[0])
    files = args.file
    unpacked_info = read_dict(target)
    input_files = unpacked_info.setdefault('input_files', {})

    try:
        ContainerUploader(target, input_files, files, unpacked_info,
                          docker_cmd=args.docker_cmd.split())
    finally:
        write_dict(target, unpacked_info)

reprounzip-docker

Allows the ReproZip unpacker to create Docker containers

BSD-3-Clause
Latest version published 2 years ago

Package Health Score

48 / 100
Full package analysis