Jason
04/20/2022, 8:30 PMKevin Kho
04/20/2022, 8:35 PMJason
04/20/2022, 8:43 PM__init__.py
and the same issue happens. I'd like to avoid having to have a Dockerfile per project or something.def storage(cls):
if getenv("ENV") == "dev":
# from prefect.storage import Local
# return Local()
from prefect.storage import Docker
return Docker()
else:
from prefect.storage import Docker
return Docker(
registry_url=f"{Secret('AWS_ACCOUNT_ID').get()}.<http://DKR.ECR.US-EAST-1.AMAZONAWS.COM|DKR.ECR.US-EAST-1.AMAZONAWS.COM>",
dockerfile="Dockerfile",
image_name="platform-prefect",
image_tag="latest",
path="../",
)
I wonder if the path since it's imported to the flow is relative to the flow itself?Kevin Kho
04/20/2022, 9:27 PMstored_as_script=True
Jason
04/21/2022, 2:39 PMKevin Kho
04/21/2022, 2:42 PM