diff --git a/examples/prefect_deploy.py b/examples/prefect_deploy.py index b6c71c2..9d7cff5 100644 --- a/examples/prefect_deploy.py +++ b/examples/prefect_deploy.py @@ -37,16 +37,21 @@ def write_poems(topics: list[str]) -> list[str]: entrypoint="examples/prefect_deploy.py:write_poems", ).deploy( name="docker-deployment", - image=DockerImage( - name="zzstoatzz/cf-test-deploy", - tag="latest", - dockerfile=str( - Path(__file__).parent.resolve() / "prefect-deploy.Dockerfile" - ), - ), + # image=DockerImage( # uncomment and replace with your own image + # name="zzstoatzz/cf-test-deploy", + # tag="latest", + # dockerfile=str( + # Path(__file__).parent.resolve() / "prefect-deploy.Dockerfile" + # ), + # ), work_pool_name="docker-work", parameters={"topics": ["roses", "violets", "sugar", "spice"]}, - job_variables={"env": {"OPENAI_API_KEY": os.getenv("OPENAI_API_KEY")}}, + job_variables={ + "env": {"OPENAI_API_KEY": os.getenv("OPENAI_API_KEY")}, + "image": "zzstoatzz/cf-test-deploy:latest", # publicly available image on dockerhub + }, + build=False, + push=False, ) else: print(f"just running the code\n\n\n\n\n\n")