You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.).
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.
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)
~ $ 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.
Activity
vrothberg commentedon Nov 6, 2023
Assuming
bootc installalways requires to run inside ofpodman: should theskopeofunctionality be moved topodmansuch thatbootccan use it?cgwalters commentedon Nov 6, 2023
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- thepodmanproject is a lot larger.(It's reasonable to install just
skopeoinside a container image e.g. that doesn't need its own full container runtime)vrothberg commentedon Nov 13, 2023
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.
install: Optionally use host mounted `/var/lib/containers`
install: Optionally use host mounted `/var/lib/containers`