tests.system.providers.docker.example_docker_copy_data

This sample “listen to directory”. move the new file and print it, using docker-containers. The following operators are being used: DockerOperator, BashOperator & ShortCircuitOperator. TODO: Review the workflow, change it accordingly to your environment & enable the code.

Module Contents

tests.system.providers.docker.example_docker_copy_data.ENV_ID[source]
tests.system.providers.docker.example_docker_copy_data.DAG_ID = 'docker_sample_copy_data'[source]
tests.system.providers.docker.example_docker_copy_data.locate_file_cmd = Multiline-String[source]
Show Value
"""
        sleep 10
        find {{params.source_location}} -type f  -printf "%f
" | head -1
    """
tests.system.providers.docker.example_docker_copy_data.test_run[source]

Was this entry helpful?