Simone Cittadini06/23/2020, 8:02 AM
Jeremiah06/23/2020, 11:41 AM
Joe Schmid06/23/2020, 12:42 PM
And then we use a docker-compose.yml that let's them easily start a Prefect Local Agent using a label that matches their personal project name.
They can then either run Flows directly in that Docker container, register Flows with cloud, and run Flows from Cloud which then get executed on that Local Agent. All of this works because Flows with identical names but in different Prefect projects are treated as distinct Flows.
services: flows: image: <image> container_name: flows command: "bash -c \"prefect auth login -t $PREFECT__CLOUD__USER__AUTH_TOKEN && prefect agent start local --label $PREFECT_PROJECT_NAME\"" network_mode: "host" volumes: - ".:/opt/srm-ds-flows"