https://prefect.io logo
f

Florent VanDeMoortele

08/30/2022, 4:46 PM
Hi there I'm working on migration from Prefect 0.x to 2.x. To deploy, I'm using
prefect.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 !
a

Anna Geller

08/30/2022, 6:42 PM
Look out for the release today - 2.3.0 - we are working on shipping this right now!
👀 1
3 Views