Skip to content

Commit

Permalink
make friendly to any user
Browse files Browse the repository at this point in the history
  • Loading branch information
zzstoatzz committed Nov 13, 2024
1 parent 85fa4fd commit 3f10181
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions examples/prefect_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 3f10181

Please sign in to comment.