https://prefect.io logo
Title
j

jack

04/24/2023, 8:35 PM
Where are the docs for using a docker image for flow storage?
1
a

Adam

04/24/2023, 8:56 PM
can you give more details? I have been working on deploying my flow with docker and may be able to help
j

jack

04/24/2023, 9:04 PM
So far I'm reading this release note I want to build a docker image that contains both the flow code and dependencies. Ideally I would push the image to amazon ECR, and the flow-run (running in ECS) would use the provided image to run.
The flow will run some pyspark code, so I intend to use an image that has pyspark installed.
It looks like an
ecs-task
infrastructure block could be used, but not sure how to pass in the (docker)
image_tag
a

Adam

04/24/2023, 9:56 PM
thats pretty much what I am working on as well, just havent gotten to the ECS step. I had started using infra blocks but the new project thing released like 2 weeks ago pretty well
it essentially makes a file to build the docker image, asks where its stored and pushes it to wherever you want it to run (ECS)
here is what my main prefect yaml file looks like for the build and pull... again dont have the push yet
🙌 1
:thank-you: 1