Hi all, I have some newbie Prefect deployment ques...
# ask-community
a
Hi all, I have some newbie Prefect deployment questions if anyone can help: 1. What is considered best practice for automating flow registration, docker builds, etc. when deploying new code? Is it preferable to simply lean on CI/CD tools for this, or do people use things like the docker BuildImage task as part of a multi-flow setup? I want to use something like GitHub for storage but locally-built docker images for the run config, but am not sure how to close the gap on automating builds from local Dockerfiles. 2. Is the only way to define non-python docker image dependencies for a flow simply to write a Dockerfile?
āž• 1
k
Hi @Austen Bouza, I think you might wanna check this out for registering workflows through CI/CD. Some people register from their Python script run in Docker. Some people use the CLI to register a bunch of flows inside the Docker image.
šŸ’„ 1
šŸ™Œ 1
You have two options for number 2. A lot of people just run the non-Python container as a Prefect task, or yes you can add them to your Dockerfile and pass the image to the agent.
a
This looks like exactly what I’m looking for, thank you!
k
Thank you to @Maikel Penz!
m
Thanks for referencing @Kevin Kho ! @Austen Bouza let me know if you have any question šŸ‘