Emile Piccoli
07/05/2023, 9:07 AMChristopher Boyd
07/05/2023, 4:42 PMEmile Piccoli
07/09/2023, 12:37 PMprefecthq/prefect:2-python3.10
with entrypoint: ["prefect", "orion", "start"]
- a docker container running the agent, based on the same image prefecthq/prefect:2-python3.10
, but with some extra care that feels in part "cheating":
- we add the flow and task files to the base image
- we use a shell script as entrypoint, so that we can run multiple commands, namely 1) run a deployment python script (which calls Deployment.build_from_flow()
) 2) runs the agent
This setup (with only these two containers) was defaulting to a SQLite database, and I could mount the file outside of the containers as you mentioned its location.
I see no issue in theory to deploy this pattern on Azure Container Group, with 2 containers within the Container Group. However, it does feel a bit "hacky". I'd be glad to have your feedback.
PS: if anyone is interested, I could also post the exact configuration for reference.