Simone Cittadini
06/23/2020, 8:02 AMJeremiah
06/23/2020, 11:41 AMJoe Schmid
06/23/2020, 12:42 PMPREFECT_PROJECT_NAME=JoeS
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.
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"
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.