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

Support rpm-ostree install in container builds #3227

Closed
Tracked by #7
cgwalters opened this issue Nov 17, 2021 · 1 comment
Closed
Tracked by #7

Support rpm-ostree install in container builds #3227

cgwalters opened this issue Nov 17, 2021 · 1 comment
Labels
container-native jira for syncing to jira

Comments

@cgwalters
Copy link
Member

See coreos/enhancements#7

User experience

The goal here is to support rpm-ostree install executing in a container. From a user experience perspective we should basically behave the same as yum install. Though there's some debate about whether we should silently upgrade "base image" dependencies.

Implementation

At a technical level, this involves effectively skipping lots of our custom infrastructure that is designed to run under systemd on host systems using ostree. For example, today we run each RPM script in its own isolated container. But because "nested containerization" today requires nontrivial additional privileges granted to the outer container, and is not the norm/default, requiring it would mean we couldn't work where people are using apt and yum today in Dockerfile etc.

We'd need to skip the "check out the base filesystem tree" stage - that's already done.

I think we would still use the custom "import rpm to ostree commit" code - in theory we could write to /ostree/repo and directly overlay to the live /. We could also perform SELinux labeling at this time, because in the Docker/OCI model it's required that derived images are rebuilt to pick up base changes.

There's quite a bit I'm glossing over here really, but we can come back and edit this issue over time.

@cgwalters
Copy link
Member Author

This was done in #3280

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
container-native jira for syncing to jira
Projects
None yet
Development

No branches or pull requests

2 participants