-
Notifications
You must be signed in to change notification settings - Fork 197
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
compose: Support layered-refs
#1788
Comments
One thing I'd love to support also is doing this on the client side - imagine spinning up a toolbox container with build tools, and doing a kernel/systemd/ostree/whatever build directly from git master, then |
Oh man, I'm literally playing with something kinda similar to this right at this very moment. Though I'm thinking more of the config repo files going into an RPM that gets injected into the manifest. See coreos/ignition-dracut#47 (comment) and coreos/ignition-dracut#47 (comment). The advantages of using an RPM is that we reuse rpm-ostree's existing change detection logic and also the files are tracked by the rpmdb (so e.g. |
Yeah but that'd be trivial to extend, just
Yeah...though I have a patch I haven't submitted that supports us intercepting commands like
|
What would be expected behavior when two sources are trying to own the same path? |
See |
OK, just because I was already more halfway through this, I pushed it out as a WIP. :) Seems like a good opportunity anyway to help in the discussions of the two approaches. coreos/coreos-assembler#414 (BTW, totally not against the approach here. I haven't thought about it a lot yet. Either way ISTM like the RPM approach in cosa can easily be a stopgap until we implement something like here if we end up going that way.) |
Does this issue overlap at all with server side package layering? |
This was actually done, treefile now has |
A long while ago we added
add-files
to the manifest and people complained about various issues. We ended up implementing split compose steps and while that isn't wrong, I think it would be very natural for us to support something like this:And those layered-refs come from the target ostree repo; they can be built however the builder wants. This would work very nicely for rpm-ostree to be wrapped by a higher level build system, and further encourage those high level build systems to use ostree.
It'd interact nicely with our change detection; commit hashes on ostree refs do exactly what we need.
Specifically for cosa I am thinking it should support the config repo having an
files
directory with noarch (script/text) content that gets injected as alayered-refs
.The text was updated successfully, but these errors were encountered: