Florent VanDeMoortele
08/30/2022, 4:46 PMprefect.environments.storage.Docker
to create an image with my flow, context, scheduler and all the required virtual environnement. Then I register flow to Prefect with prefect.environments.DaskKubernetesEnvironment
as environment. I'm using prefect.executors.DaskExecutor
to run it.
To deploy on 2.x, I simply try to use DockerContainer
but it doesn't work without storage. So I try to install main branch of Prefect because of a merged PR ( https://discourse.prefect.io/t/how-to-build-deployments-with-flow-code-and-dependencies-being-baked-into-a-docker-image/1341 ) to use DockerPackager
but it's not compatible with Deployment.build_from_flow
. I also try to push directly my Docker image with push_image
but push doesn't already work. So, I'm a bit confused because I can't find explicit documentation on Discourse and I read different responses because of the different releases on 2.x.
Is DockerPackager
the best practice to deploy a completely self contained flow? In this case, do you have any idea of the release roadmap to fix this (and to update documentation) ? If not, what can I should use?
Thank you !Anna Geller