Brian Roepke
12/20/2024, 7:12 PMlinux/amd64
(again - this worked in the past)
3. When I run this file, the base prefect image only partially pulls from Docker Hub and then the build fails .
4. I can manually re-pull the base image via docker desktop and it will then finally complete the full build
5. After the upload to ECR is complete and when I run the Flow, I get the following error. It's like it's not able to properly build my image before pushing.
Error Message (From AWS ECS Task)
CannotPullContainerError: ref pull has been retried 1 time(s): wrong diff id calculated on extraction "sha256:c0f1022b22a9b36851b358f44e5475e39d166e71a8073cf53c894a299239b1c5"
Prefect Version
Version: 3.1.8
API version: 0.8.4
Python version: 3.11.11
Git commit: 53a83ebc
Built: Tue, Dec 17, 2024 10:20 AM
OS/Arch: darwin/arm64
Profile: default
Server type: cloud
Pydantic version: 2.10.4
Integrations:
prefect-docker: 0.6.2
prefect-slack: 0.3.1
prefect-snowflake: 0.28.1
prefect-aws: 0.5.3
prefect-github: 0.3.1
prefect-shell: 0.3.1
Docker File (Auto-Created)
FROM prefecthq/prefect:3.1.8-python3.11
COPY requirements.txt /opt/prefect/prefect-dka/requirements.txt
RUN python -m pip install -r /opt/prefect/prefect-dka/requirements.txt
COPY . /opt/prefect/prefect-dka/
WORKDIR /opt/prefect/prefect-dka/
Deploy Code
if __name__ == "__main__":
status_check.deploy(
name="status-check-ecs-deployment",
work_pool_name="dka-ecs-pool",
cron="0 17 * * *",
build=True,
push=True,
image=DockerImage(
name="<<my arn>>.dkr.ecr.us-east-1.amazonaws.com/prefect-flows:latest",
platform="linux/amd64",
),
)
Bianca Hoch
12/20/2024, 8:47 PMBrian Roepke
12/21/2024, 12:17 AMKevin Trebing
12/30/2024, 7:51 AMBrian Roepke
12/30/2024, 9:34 PMBrian Roepke
12/30/2024, 9:37 PMBrian Roepke
12/31/2024, 6:15 PMBianca Hoch
12/31/2024, 8:52 PM