Is there a way to declare docker image in the pref...
# prefect-community
s
Is there a way to declare docker image in the prefect deployment build command?
βœ… 1
c
s
I think I slightly misspoke. I meant I'm running
-i kubernetes-job
, but I have a custom dockerimage that my flows run in. It's just annoying creating the deployment and then going in to change the image to the specific one in my docker repo.
j
@Sam Garvis I had the same goal a couple of days ago, you can use the
--override
parameter --override image=<your_image>
βœ… 1
c
nice
j
You can use the override to any infra value
s
Dang, that's awesome. Thank you
πŸ™Œ 1
n
in case its helpful, you can also create a kubernetes job block in the UI for your workspace (in which you can reference an image) and then use it in the build command like
prefect deployment build flow.py:primary_func -ib kubernetes-job/default-k8s-job
which means that if you're using this command in CI/CD, you can just update the block values in the UI if needed without changing the CI/CD workflow
βœ… 1
smart 2