-
Notifications
You must be signed in to change notification settings - Fork 27
containers: support derivation #12
Comments
If we want to support |
Thinking through this more, it seems to me that derivation support does scope creep into mapping container image layers into ostree commits, and handling GC. Basically to gain the real benefit, we need to avoid re-pulling layers we already have. This isn't hard at all, and similar code exists in containers/storage's ostree backend. But it is definitely a scope increase. |
This is prep for iterating on ostreedev#12
First, you need the code from coreos/rpm-ostree#3139 and most notably #99 plus https://github.com/cgwalters/container-image-proxy stuck in the image too. These instructions have been tested on current FCOS stable
Now from there, try creating a derived image! You could do it on the same machine, but I think it's much clearer to use a separate build system, which could be the quay.io buildsystem or e.g. an OpenShift cluster or whatever. There's an example here https://github.com/cgwalters/fcos-derivation-example Right now you can easily e.g. add files - notably things like systemd units. What doesn't work yet is Anyways, once you have your image uploaded somewhere, try rebasing to it:
From there you can apply via e.g. |
A big looming problem with this whole thing is handling Basically do we support people doing e.g. |
For ostreedev/ostree-rs-ext#12 Let's ship this updated code to replace the existing bits so people can try it out more easily. Once we gain experience with it, we can make a stable ostree-rs-ext release.
For ostreedev/ostree-rs-ext#12 Let's ship this updated code to replace the existing bits so people can try it out more easily. Once we gain experience with it, we can make a stable ostree-rs-ext release.
This is prep for iterating on ostreedev#12
For ostreedev/ostree-rs-ext#12 Let's ship this updated code to replace the existing bits so people can try it out more easily. Once we gain experience with it, we can make a stable ostree-rs-ext release.
For ostreedev/ostree-rs-ext#12 Let's ship this updated code to replace the existing bits so people can try it out more easily. Once we gain experience with it, we can make a stable ostree-rs-ext release.
Would a |
But to clarify, this proposal does not require |
The initial version of this is implemented in the 0.4.0 release. Closing this issue since we have a working PoC - a lot more remains to be done obviously, but will make a followup tracker issue. |
We may in the future support the equivalent of a
Dockerfile
that doesWhat this will do is basically an ostree-tar version of
ostree commit --tree=dir=/ --selinux-policy-from-base
that will do e.g. selinux labeling, hardlink deduplication and computing the sha256 digest.In theory, we don't require this "blessing" of
ostree container-finalize-bootable
- we could do it client side too. But I think it's better for the client side to be "dumb" by default - it makes it more like an image system.Use/integration with rpm-ostree and higher level projects
This project is independent of rpm-ostree and other tools. However we need to support them; specifically e.g.:
Following the above. And so our library/model should also support what rpm-ostree natively wants to do in unpacking rpms into ostree commits for example.
Ultimately, this scope creeps basically into a new ostree repo mode
container-tar
or so?The text was updated successfully, but these errors were encountered: