Hey everybody, I'm working on a CircleCI pipeline ...
# ask-community
m
Hey everybody, I'm working on a CircleCI pipeline for Prefect running on EKS/ECR I was wondering fi there's a way to run
prefect build
without pushing the image into ECR as a test for CI. I'd like to have some verification that the containers will be build correctly before registering them, and definitely don't want to be pushing up an image every time there's a PR opened. Thanks for any feedback.
k
Hey @Matthew Neary, what Prefect version are you on? We had a recent change that respects the Docker caching that might help with the builds. Other than that, I think the build command will always build the container
m
hey @Kevin Kho, we're using
0.14.17
If
prefect build
won't work do you have any recommendations for something like a test build?
k
0.14.21 reduces the build time by a lot. You can use
storage.build()
in Python to test like
Copy code
storage = Docker(registry_url="<http://gcr.io/dev/|gcr.io/dev/>", python_dependencies=["pyodbc"])
and then
storage.build()