Hilary Roberts
07/13/2021, 1:35 PMstorage = Docker(registry_url="https://<our account id>.<http://dkr.ecr.eu-west-1.amazonaws.com/data/prefect-application/%22|dkr.ecr.eu-west-1.amazonaws.com/data/prefect-application/">)
storage.build()
I get this error
[2021-07-13 14:32:00+0100] INFO - prefect.Docker | Building the flow's Docker storage...
invalid reference format
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/hilaryroberts/.pyenv/versions/3.8.11/lib/python3.8/site-packages/prefect/storage/docker.py", line 303, in build
self._build_image(push=push)
File "/Users/hilaryroberts/.pyenv/versions/3.8.11/lib/python3.8/site-packages/prefect/storage/docker.py", line 369, in _build_image
raise ValueError(
ValueError: Your docker image failed to build! Your flow might have failed one of its deployment health checks - please ensure that all necessary files and dependencies have been included.
It should be using the default image from the prefecthq dockerhub, so I wonder why it's failing to build. Anyone know what I might be doing wrong?Kevin Kho
Hilary Roberts
07/13/2021, 1:51 PMKevin Kho
Kevin Kho
Hilary Roberts
07/13/2021, 2:07 PMKevin Kho
from prefect.storage import docker
from prefect.storage.docker import Docker
from prefect import task, Flow
@task
def abc(x):
return x
with Flow("ecs_test") as flow:
abc(1)
storage = Docker(registry_url="<http://0298646XXXXX.dkr.ecr.us-east-2.amazonaws.com/|0298646XXXXX.dkr.ecr.us-east-2.amazonaws.com/>", image_name="ecs_test")
flow.storage = storage
Hilary Roberts
07/13/2021, 5:27 PM