[arch-general] Building in docker?

Leonid Isaev lisaev at umail.iu.edu
Wed Sep 3 12:36:23 EDT 2014

On Wed, Sep 03, 2014 at 09:04:37AM +0200, Magnus Therning wrote:
> For various reasons I'm looking into not using `makechrootpkg` when
> building the 200+ packages I put into a non-official repo.  Obviously
> it's important to keep the building environment separate from my
> ordinary system environment.  Going to full virtualisation is
> definitely overkill and the only containers I know of are chroots and
> docker.

If by chroot you mean also nspawn, then it is mostly equivalent to docker and
lxc. The only thing bad about systemd-nspawn is its lack of easy config through
files (it only supports cmdline switches which is ridiculously cumbersome).
Also, docker is more complex than a plain lxc-tools approach.

So, I would go with lxc as the simplest and most flexible solution. In fact,
that's how I build my packages.

> Docker has some nice attributes, in particular no need for root
> access.  However, I don't know a whole lot about it, so I wonder are

Where do you take this from? Rootless containers require a specific host kernel
configuration (which -ARCH kernels don't have).

Leonid Isaev
GPG fingerprints: DA92 034D B4A8 EC51 7EA6  20DF 9291 EE8A 043C B8C4
                  C0DF 20D0 C075 C3F1 E1BE  775A A7AE F6CB 164B 5A6D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20140903/a7dd7428/attachment-0001.asc>

More information about the arch-general mailing list