•  
      request #29253 Improve layers caching of Tuleap Docker images
    Infos
    #29253
    Thomas Gerbet (tgerbet)
    2022-10-26 15:38
    2022-10-26 15:06
    30849
    Details
    Improve layers caching of Tuleap Docker images

    So I got nerd-snipped by a constructive comment on Twitter to take another look on how the Tuleap Docker images are built…

    The squashing done by copying the whole image with COPY --from=0 / / is criticized.

    This was originally done because we have to copy the whole RPM repository into the build for Tuleap Enterprise Edition image, squashing the whole image saved some MB overall even when upgrading to a close version (see gerrit #18478).

    We can improve that:

    • copying the RPM repository into the build is not needed for the Tuleap Community Edition image
    • we now have access to the RUN --mount=type=bind directive so the copy is not needed anymore
    Docker images
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Under implementation
    Empty
    Attachments
    Empty
    References
    Referenced by request #29253

    Follow-ups