Mehdi Nazari
07/27/2021, 5:18 PMwith Flow("Example-Flow",
storage=Docker(
image_name="example_flow_import",
image_tag="dev",
dockerfile="<path/to/dockerfile>",
python_dependencies=["numpy", "pandas"],
files={}, # Trying to avoid this
env_vars={}, # Trying to avoid this
)) as flow:
Kevin Kho
Mehdi Nazari
07/27/2021, 5:36 PMKevin Kho
Local
but the RunConfig is DockerRun
, which makes the file paths relative to the container. This would still use the Docker Agent as opposed to the Local Agent to spin up the container.Mehdi Nazari
07/27/2021, 6:17 PMKevin Kho
Mehdi Nazari
07/27/2021, 6:22 PMprefect register
Kevin Kho
python workflow/flow.py
Mehdi Nazari
07/27/2021, 6:28 PMKevin Kho
pip install -e .
the package to install it. What IDE are you using?