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

*: various whiteout improvements #258

Merged
merged 2 commits into from
Sep 10, 2018
Merged

Commits on Sep 10, 2018

  1. umoci repack: create simplified whiteouts

    This change ultimately makes our images a little bit smaller by no
    longer whiting-out every sub-entry when a directory has been deleted.
    While this is a net benefit, the cause of this change is a Docker
    breakage (which arguably added a restriction that is contrary to the OCI
    specification and thus it is definitely *their* bug). But to play nice
    (and to take the opportunity to improve some images) we can fix it in
    umoci.
    
    Signed-off-by: Aleksa Sarai <asarai@suse.de>
    cyphar committed Sep 10, 2018
    Configuration menu
    Copy the full SHA
    ce35a6a View commit details
    Browse the repository at this point in the history
  2. umoci insert: extend to support whiteouts

    Previously umoci-insert(1) was quite limited in that it would only
    insert a given file or directory without having any configurability.
    Something users might want is the ability to delete a path without an
    unpack-repack cycle. Or they want to replace the contents of a directory
    rather than merge them.
    
    To this effect, add --whiteout and --opaque which provide the
    corresponding features. --whiteout just adds a whiteout at the target
    path, while --opaque adds an opaque whiteout for the target before doing
    the copy.
    
    You _can_ use --whiteout and --opaque together but it's basically
    useless, and Docker might complain for no good reason.
    
    Signed-off-by: Aleksa Sarai <asarai@suse.de>
    cyphar committed Sep 10, 2018
    Configuration menu
    Copy the full SHA
    15f02ce View commit details
    Browse the repository at this point in the history