Skip to content

Drop host requirement on skopeo #81

Closed

Description

@cgwalters

Today, bootc install runs from a privileged container, using the host kernel, but otherwise all binaries executed come from the container (including e.g. mkfs.xfs etc.).

With one glaring exception; today we need skopeo in the host. For more information on this, see podman-container-tools/skopeo#1838

One thing we could do relatively easily today is detect if the host and container are compatible, and copy the skopeo binary to the host if so. This would help a lot of cases, but not all.

Activity

  1. added
    area/install
    on Mar 18, 2023
  2. vrothberg commented on Nov 6, 2023

    @vrothberg
    Contributor

    Assuming bootc install always requires to run inside of podman: should the skopeo functionality be moved to podman such that bootc can use it?

  3. cgwalters commented on Nov 6, 2023

    @cgwalters
    MemberAuthor

    Yeah it'd likely make sense to refactor it into a shared library that gets vendored into both projects. It's a really small amount of code and the duplication wouldn't matter too much.

    I'm not sure we can really move it though because I know of at least one user outside of this project who is explicitly only depending on skopeo - the podman project is a lot larger.

    (It's reasonable to install just skopeo inside a container image e.g. that doesn't need its own full container runtime)

  4. vrothberg commented on Nov 13, 2023

    @vrothberg
    Contributor
    ~ $ du -h /usr/bin/skopeo 
    26M     /usr/bin/skopeo
    ~ $ du -h /usr/bin/podman
    43M     /usr/bin/podman
    

    The size difference isn't too bad given Podman has more features. The thought I had was to reduce overall dependencies assuming Podman is always required on the host.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/install

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions