I have a project with this structure. The two flows have some shared functions and configs.
project/
• flow1.py
• flow2.py
• utils/
• config/
I’d like to pack two flows in one docker image but I don’t see a prefect command which can help me do so. e.g if I speficy storage for both flow1 and flow2 with the same image name, they will overwrite each other when I call
prefect register
So I try to replicate the behavior of building storage by writing my own dockerfile. A question here is how does the file
healthcheck.py
and
flow1.flow
come into scope? Below is the output after I call register command with docker storage
Welp, I was typing out my answer but this looks like a better solution for your use case!
e
Enda Peng
05/03/2021, 8:27 PM
but still interested in how does the two files come into scope, it can help me better understand the framework
Enda Peng
05/03/2021, 8:28 PM
appreciate for the help 😄
k
Kevin Kho
05/03/2021, 8:31 PM
I’d have to get back to you for more details.
Kevin Kho
05/03/2021, 8:43 PM
My initial answer though is that you don’t need to worry about those when you build your own image. You can also just build on top of the Prefect images: https://hub.docker.com/r/prefecthq/prefect
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.