Is there any best practice suggestion/examples on using docker agent + docker run? Right now, after my flow is tested locally, what I do is:
• Add one extra line at the end of flow to enable docker-run plus image information, e.g
foo
image
• Run a command to register flow to cloud
• Build and ship
foo
image based on
prefect/prefecthq
image - in the docker file, I have to copy the code to somewhere like
/app/
and set it as workdir
It works, but I am curious about whether somewhere can be improved. Thank you!
k
Kevin Kho
04/26/2021, 4:45 PM
Hi @Enda Peng! Yes this looks like a good approach. A lot of people have issues with dependencies when they don’t copy their code over.
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.