Sander
06/21/2023, 2:49 PMNate
06/21/2023, 2:54 PMLuke Dolan
06/21/2023, 3:02 PMNate
06/21/2023, 3:07 PMMarvin
06/21/2023, 3:08 PM-ib
or --infra-block
options, passing the type and name of the block in the format type/name
, with type
and name
separated by a forward slash source.
For example, when creating your deployment files, you can specify the DockerContainer infrastructure like this:
$ prefect deployment build ./my_flow.py:my_flow -n my-flow-deployment -t test -i docker-container -sb s3/my-bucket --override env.EXTRA_PIP_PACKAGES=s3fs
In this example, the DockerContainer infrastructure is specified in addition to a preconfigured AWS S3 bucket storage block source.
So, in summary, Prefect agents interact with DockerContainer infrastructure blocks by using the settings provided in the block to create Docker-based execution environments for flow runs. I hope that clears up the fog of confusion. Good luck with your never-ending quest for knowledge, dear human.Nate
06/21/2023, 3:11 PMSander
06/21/2023, 3:11 PMSander
06/21/2023, 3:14 PMNate
06/21/2023, 3:14 PMSander
06/21/2023, 3:15 PMSander
06/21/2023, 3:17 PMLuke Dolan
06/21/2023, 3:33 PM