Seth Coussens
07/27/2022, 11:38 PMKhuyen Tran
07/27/2022, 11:51 PMDeployment()
function and replace it with a deployment manifest and deployment.yaml
instead. You can find the updated docs about deployment here.
Basically, you can run:
prefect deployment build <path-to-your-flow>:<your-flow> -n <deployment-name> -t <tag> -i DockerContainer
to run your flows in a Docker container.
We will update the docs for this as soon as possibleSeth Coussens
07/28/2022, 2:04 AMFlow('attach files', storage=Docker(registry_url="<http://myrepo.azurecr.io/prefect/runsheets|myrepo.azurecr.io/prefect/runsheets>", dockerfile="./.devcontainer/Dockerfile")) as flow:
Ilya Galperin
07/28/2022, 6:43 PMKhuyen Tran
07/28/2022, 7:31 PMprefect deployment build
command.
The specific command is:
prefect deployment build <path-to-file>:<flow-name> -n <deployment-name> -i docker-container
Ilya Galperin
07/28/2022, 10:31 PMKubernetesJob
in the 2.0 world. To do this, would we instead need to follow the Building your Own Image strategy found here and point to it when configuring our KubernetesJob
infrastructure? It seems like the packaging module did this before but unless Iām misunderstanding doing prefect deployment build ... -i docker-container
does not have the same functionality?