Austen Bouza
11/11/2021, 6:25 PMAnna Geller
Anna Geller
flow_utilities
COPIED into the Docker image https://github.com/anna-geller/packaging-prefect-flows/blob/master/flows/s3_ecs_run_custom_ecr_image.py - details incl. example Dockerfile are also in this repo.
2. Here we reference a custom task definition and in this task definition we set a custom ECR image https://github.com/anna-geller/packaging-prefect-flows/blob/master/flows/s3_ecs_run_custom_task_definition.pyAusten Bouza
11/11/2021, 7:21 PMAusten Bouza
11/12/2021, 7:33 PM/opt/prefect
in the container by default? I’m still getting a FlowStorageError
after copying the local module into my docker container and the only thing I can think of is that it isn’t being copied into the same folder that the flow runs from.Anna Geller
Austen Bouza
11/12/2021, 7:48 PMAnna Geller
stored_as_script=True
within your Docker storage, then it does matter where you put the flow file. I think those two examples clarify that:
1. Stored as script - you don’t build the image on registration https://github.com/anna-geller/packaging-prefect-flows/blob/master/flows_no_build/docker_script_docker_run_local_image.py
2. Flow stored as pickle - you do build the image during registration https://github.com/anna-geller/packaging-prefect-flows/blob/master/flows/docker_pickle_docker_run_local_image.py