[lxc-devel] LXD image creation tool
Nelo-Thara Wallus
nelo at wallus.de
Sun Jul 16 12:25:02 UTC 2017
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170716/1c6682e2/attachment.sig>
More information about the lxc-devel
mailing list