fulltext/worker.py
def pull_image(*args: Any, **kwargs: Any) -> None:
    """Make the dind host pull the fulltext extractor image."""
    client = docker.DockerClient(app.config['DOCKER_HOST'])
    image_name = app.config['EXTRACTOR_IMAGE']
    image_tag = app.config['EXTRACTOR_VERSION']
    logger.info('Pulling %s', f'{image_name}:{image_tag}')
    for line in client.images.pull(f'{image_name}:{image_tag}', stream=True):
        print(json.dumps(line, indent=4))
        logger.debug(json.dumps(line, indent=4))
    logger.info('Finished pulling %s', f'{image_name}:{image_tag}')
Make the dind host pull the fulltext extractor image.
Make the dind host pull the fulltext extractor image.
Make the dind host pull the fulltext extractor image .
def pull_image(*args: Any, **kwargs: Any) -> None:
    client = docker.DockerClient(app.config['DOCKER_HOST'])
    image_name = app.config['EXTRACTOR_IMAGE']
    image_tag = app.config['EXTRACTOR_VERSION']
    logger.info('Pulling %s', f'{image_name}:{image_tag}')
    for line in client.images.pull(f'{image_name}:{image_tag}', stream=True):
        print(json.dumps(line, indent=4))
        logger.debug(json.dumps(line, indent=4))
    logger.info('Finished pulling %s', f'{image_name}:{image_tag}')
def pull_image ( * args : Any , ** kwargs : Any ) -> None : client = docker . DockerClient ( app . config [ 'DOCKER_HOST' ] ) image_name = app . config [ 'EXTRACTOR_IMAGE' ] image_tag = app . config [ 'EXTRACTOR_VERSION' ] logger . info ( 'Pulling %s' , f'{image_name}:{image_tag}' ) for line in client . images . pull ( f'{image_name}:{image_tag}' , stream = True ) : print ( json . dumps ( line , indent = 4 ) ) logger . debug ( json . dumps ( line , indent = 4 ) ) logger . info ( 'Finished pulling %s' , f'{image_name}:{image_tag}' )
Make the dind host pull the fulltext extractor image.
Make the dind host pull the fulltext extractor image .
"""Make the dind host pull the fulltext extractor image."""
args
Any
kwargs
Any