[lxc-devel] LXD image creation tool

Nelo-Thara Wallus nelo at wallus.de
Tue Jul 18 07:55:36 UTC 2017


Hi Christian,

Thanks for coming back.

Tbh I didn't know about the forum until now - I'll open a thread there
when I see where exactly lxb is going.

Perfect, I'll start working on a patch.

Cheers,
Nelo

On 2017-07-17 16:42, Christian Brauner wrote:
> Hi,
>
> We're certainly not opposed to moving the image bits to a separate package.
> Especially, if you'd write the patch. At least I don't see any reason not
> to do it. I'll forward this to Stéphane as well. If you want you can open
> this as a separate topic on discuss.linuxcontainers.org. It will have more
> visibility over there. :)
>
> Thanks,
> Christian
>
> On Jul 16, 2017 14:47, "Nelo-Thara Wallus" <nelo at wallus.de> wrote:
>
> 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
>
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel

> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel

--
/"\  ASCII Ribbon Campaign
\ /  - against HTML emails
 X   - against proprietory attachments
/ \  http://en.wikipedia.org/wiki/ASCII_Ribbon_Campaign



More information about the lxc-devel mailing list