Morning list, Docker recently added multi-stage[1] builds, which allow to e.g. build an application in one layer, then only copying the resulting build to a new, slimmer, layer, removing the whole build toolchain.
[1]: https://docs.docker.com/engine/userguide/eng-image/multistage-build/ I've wanted something like that for LXD as well, however I only found maryvilledev/lxb[2], which requires the host to run LXD instead of only building the tar ball to spec. [2]: https://github.com/maryvilledev/lxb Currently I'm working on a prototype at ntnn/lxb[3], however I'd like to use the structs and functions which already exist in the LXD codebase, instead of reverse-engineering each step. [3]: https://github.com/ntnn/lxb Would you be open to a patch which moves the image spec/metadata parsing/etc.pp. into its own package, so it can be used as a library by third party tools? I'd leave all the actual handling, e.g. importing, exporting, ... in the lxd package, but functions like detectCompression, unpack{,Image}, compressFile, etc.pp. would be quite handy to not differ between an image builder and the actual daemon handling the images. Cheers, Nelo -- /"\ ASCII Ribbon Campaign \ / - against HTML emails X - against proprietory attachments / \ http://en.wikipedia.org/wiki/ASCII_Ribbon_Campaign
signature.asc
Description: Digital signature
_______________________________________________ lxc-devel mailing list [email protected] http://lists.linuxcontainers.org/listinfo/lxc-devel
