Caleb
10/17/2024, 8:52 PMbuild:
- prefect_docker.deployments.steps.build_docker_image:
requires: prefect-docker>=0.3.0
image_name: my-repo/my-image
tag: my-tag
dockerfile: auto
push: true
When I run prefect deploy
I see the error TypeError: BuildApiMixin.build() got an unexpected keyword argument 'push'
. I see that in prefect_docker the client used to build the Dockerfile in the build step is from docker-py. Under `build`s parameters I do not see a push
option listed, only pull
. Is the error above expected? Is the snippet above from the documentation correct?Marvin
10/17/2024, 8:52 PMpush
keyword argument is unexpected based on the documentation for Prefect 3.x. The snippet you provided seems to be correct according to the documentation that describes the usage of push: true
in the prefect_docker.deployments.steps.build_docker_image
step source.
Given that there were no related issues found on GitHub and your usage matches the documentation, your setup should typically work. It might be worth checking if there are any updates or bug fixes relevant to your Prefect version in the latest release notes here.
Ensure that your Prefect and prefect-docker
versions meet the required versions specified in the prefect.yaml
. If everything is correct and the error persists, it could be beneficial to post the issue in the Prefect community or support forums for more targeted troubleshooting.Nate
10/17/2024, 8:52 PMpush_docker_image
is a separate step now
so where did you find that? we may need to update docsNate
10/17/2024, 8:53 PMCaleb
10/17/2024, 8:54 PMNate
10/17/2024, 8:55 PMNate
10/17/2024, 8:59 PMCaleb
10/17/2024, 9:02 PMpush
examples here https://docs.prefect.io/3.0/deploy/infrastructure-concepts/prefect-yaml#reuse-configuration-across-deployments and https://docs.prefect.io/3.0/deploy/infrastructure-concepts/prefect-yaml#the-build-actionNate
10/17/2024, 9:03 PMCaleb
10/18/2024, 6:41 PMNate
10/18/2024, 6:44 PMCaleb
10/18/2024, 7:01 PM