Skip to content

Compress Docker images with zstd #1880

Closed as not planned
Closed as not planned

Description

Problem

ECS FARGATE does not cache images as they are pulled. This means it must re-pull the image from GHCR for each task that is started during a deployment. The time it takes to pull an image from GHCR has a significant impact on the total length of our deployments, especially for the API which deploys tasks one by one rather than simultaneously as it does for the frontend.

Description

Read the documentation for zstd compression here: https://aws.amazon.com/blogs/containers/reducing-aws-fargate-startup-times-with-zstd-compressed-container-images/

Update our docker builds to use zstd compression.

Docker for macOS apparently does not yet support zstd compression. Implementing this issue would remove the ability for maintainers on macOS to run deployed images locally. This could cause issues with debugging. This issue might not be possible to responsibly implement until after Docker for macOS supports zstd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    ⛔ status: blockedBlocked & therefore, not ready for work💬 talk: discussionOpen for discussions and feedback🔒 staff onlyRestricted to staff members🟩 priority: lowLow priority and doesn't need to be rushed🤖 aspect: dxConcerns developers' experience with the codebase🧰 goal: internal improvementImprovement that benefits maintainers, not users🧱 stack: mgmtRelated to repo management and automations

    Type

    No type

    Projects

    • Status

      ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions