Is there a prefect docker image pre-build with python 3.12 yet?
Paige Gulley
03/02/2024, 9:23 PM
Or, rather-
Paige Gulley
03/02/2024, 9:25 PM
if I'm using the prefect_docker build_docker_image step in the build phase of my prefect.yaml, how can I ensure that it will be built with python3.12? I see that there are images for 3.12 but I'm not sure how I would swap them out using this interface
n
Nate
03/02/2024, 10:24 PM
hi @Paige Gulley - are you providing your own
Dockerfile
when using
build_docker_image
?
if so, you can start it with something like
Copy code
FROM prefecthq/prefect:2-python3.12
... install your deps / copy source if desired etc ...
🙌 1
p
Paige Gulley
03/03/2024, 12:22 AM
Hey Nate! Thanks for that! No- I'm not supplying my own dockerfile- I managed to just rollback all of parts of my stack that weren't compatible with whichever python version was default in there- I'm trying to keep all my infrastructure as streamlined as possible
Paige Gulley
03/03/2024, 12:23 AM
Relatedly- is there any support in
prefect.deployments.steps.git_clone
for specifying tags or commit numbers?
n
Nate
03/03/2024, 4:46 PM
in general I dont believe github supports cloning at a tag or commit, rather you'd clone and then switch to the tag/commit you want, so that's what I'd do here. just add a
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.