Skip to content

install: Optionally use host mounted /var/lib/containers - #286

Merged
jeckersb merged 1 commit into
bootc-dev:mainfrom
cgwalters:install-use-varlib-containers
Jan 30, 2024
Merged

jeckersb merged 1 commit into
bootc-dev:mainfrom
cgwalters:install-use-varlib-containers

Conversation

@cgwalters

Copy link
Copy Markdown
Member

I just keep hitting the host skopeo requirement in corner cases; it's annoying because otherwise the container is self-sufficient. Change our installation instructions to add a /var/lib/containers bind mount.

For the time being of course we continue to support forking off skopeo on the host.

One thing I still want to investigate is dropping some requirements here and switch to dynamically setting up the mount points inside the container as is mentioned in https://brauner.io/2023/02/28/mounting-into-mount-namespaces.html but this currently requires relatively new host kernels.

As far as test coverage, this changes the Github Action that uses ubuntu and needed to build a newer skopeo to stop doing that, and in fact we explicitly remove skopeo to verify it's not being used in the install process.

I didn't change the other install tests to verify they keep working.

Closes: #81

I just keep hitting the host skopeo requirement in corner cases;
it's annoying because *otherwise* the container is self-sufficient.
Change our installation instructions to add a `/var/lib/containers`
bind mount.

For the time being of course we continue to support forking off
`skopeo` on the host.

One thing I still want to investigate is dropping some requirements
here and switch to *dynamically* setting up the mount points
inside the container as is mentioned in https://brauner.io/2023/02/28/mounting-into-mount-namespaces.html
but this currently requires relatively new host kernels.

As far as test coverage, this changes the Github Action that
uses ubuntu and needed to build a newer skopeo to stop doing
that, and in fact we explicitly *remove* skopeo to verify
it's not being used in the install process.

I didn't change the other install tests to verify they keep
working.

Closes: bootc-dev#81
Signed-off-by: Colin Walters <[email protected]>
@github-actions github-actions Bot added documentation area/install Issues related to `bootc install` labels Jan 26, 2024
@jeckersb
jeckersb self-requested a review January 29, 2024 17:13

@jmarrero jmarrero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jeckersb
jeckersb merged commit 2ef5b3d into bootc-dev:main Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/install Issues related to `bootc install`

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop host requirement on skopeo

3 participants