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

WIP: Use podman pull to fetch containers #215

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Commits on Jul 2, 2024

  1. Split out a hostexec module

    We'll use this even in cases where we don't have the `install`
    feature.
    
    Signed-off-by: Colin Walters <walters@verbum.org>
    cgwalters authored and jeckersb committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    870da02 View commit details
    Browse the repository at this point in the history
  2. WIP: Use podman pull to fetch containers

    See containers#147 (comment)
    
    With this bootc starts to really gain support for a different backend
    than ostree.  Here we basically just fork off `podman pull` to
    fetch container images into an *alternative root* in
    `/ostree/container-storage`,
    (Because otherwise basic things like `podman image prune` would
     delete the OS image)
    
    This is quite distinct from our use of `skopeo` in the ostree-ext project
    because suddenly now we gain support for things
    implemented in the containers/storage library like `zstd:chunked` and
    OCI crypt.
    
    *However*...today we still need to generate a final flattened
    filesystem tree (and an ostree commit) in order to maintain
    compatibilty with stuff in rpm-ostree.  (A corrollary to this is
    we're not booting into a `podman mount` overlayfs stack)
    Related to this, we also need to handle SELinux labeling.
    
    Hence, we implement "layer squashing", and then do some final
    "postprocessing" on the resulting image matching the same logic
    that's done in ostree-ext such as `etc -> usr/etc` and handling `/var`.
    
    Note this also really wants
    ostreedev/ostree#3106
    to avoid duplicating disk space.
    
    Signed-off-by: Colin Walters <walters@verbum.org>
    cgwalters authored and jeckersb committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    2081803 View commit details
    Browse the repository at this point in the history
  3. Use authfile from ostree_ext

    Signed-off-by: John Eckersberg <jeckersb@redhat.com>
    jeckersb committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    fe098b3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    331a0b5 View commit details
    Browse the repository at this point in the history
  5. Handle bootc backend in origin file

    Signed-off-by: John Eckersberg <jeckersb@redhat.com>
    jeckersb committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    b12e6b1 View commit details
    Browse the repository at this point in the history