Jai Deo
10/26/2021, 8:02 AMAnna Geller
KubernetesRun
• since you have custom module dependencies, those need to be packaged into a Docker image that gets built and pushed to Azure Container Registry - README of this repo explains how to do that and Dockerfile shows how the image can be built
• the custom package is shown as flow_utilities
in the flow
https://github.com/anna-geller/packaging-prefect-flows/blob/master/flows/github_kubernetes_run_custom_azure_image.pyKevin Kho
Jai Deo
10/26/2021, 2:15 PMKevin Kho
cloudpickle
works where it doesn’t deepcopy the modules. With cloudpickle 2.0
recently released, there is support for deep copying of modules which might make this possible.Jai Deo
10/26/2021, 2:19 PMJai Deo
10/26/2021, 2:21 PMKevin Kho
setup.py
in Docker will work. We have a more generic Git
storage that clones the whole repo and we talked about installing the repo as a module, but it felt like reinventing Python packaging ourselves. If you have the setup.py
, you can install your dependencies in a Docker container to be used for the flow.Anna Geller
Jai Deo
10/26/2021, 2:29 PM