Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't recreate cached layers #715

Closed

Commits on Sep 20, 2019

  1. Don't recreate cached layers

    This caching optimization reuses existing layer from a cache image for a
    RUN command instead of unpacking it and recreating.  It also helps with
    multi-stage build caching issues - when recreating cached layers, some
    attributes like timestamps are not recreated and the digest for the new
    first stage image was different, breaking caching for subsequent stages.
    eyusupov committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    faf1d92 View commit details
    Browse the repository at this point in the history
  2. Optimize FS snapshotting

    Defer FS state setup until the first cache miss.  Cached commands are
    now uniformly handled by extracting the layer from the cached image.
    This allows skipping layers unpacking uniformly when they are not
    required for the stage build.
    eyusupov committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    95e06b6 View commit details
    Browse the repository at this point in the history
  3. Log base image digest

    eyusupov committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    c998e92 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d4b6db4 View commit details
    Browse the repository at this point in the history
  5. Cache workdir command

    It needs unpacked FS to check if the workdir exists.
    Also it can break caching keys if the workdir did not exist.
    eyusupov committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    0352d40 View commit details
    Browse the repository at this point in the history
  6. Add more logging

    eyusupov committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    9cfb6d1 View commit details
    Browse the repository at this point in the history
  7. Handle SingleSnaphot option

    eyusupov committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    e8f1819 View commit details
    Browse the repository at this point in the history
  8. Handle volumes

    eyusupov committed Sep 20, 2019
    Configuration menu
    Copy the full SHA
    760acb8 View commit details
    Browse the repository at this point in the history