all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: zimoun <zimon.toutoune@gmail.com>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: Guix in Docker for automated CD/CI of complex software
Date: Tue, 26 Nov 2019 10:59:29 +0100	[thread overview]
Message-ID: <87wobn9cvy.fsf@gnu.org> (raw)
In-Reply-To: <CAJ3okZ0XUeKMP34f4u2bZsFQ6geJqeKNZYsS=N1LXVHEi8mJEA@mail.gmail.com> (zimoun's message of "Mon, 25 Nov 2019 22:33:17 +0100")

Hi Vincente & all,

zimoun <zimon.toutoune@gmail.com> skribis:

> I was suggesting that maybe you can use Guix to create this image. :-)
>
> $ guix describe
> Generation 57   Nov 25 2019 14:26:15    (current)
>   guix b5d4d5b
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: b5d4d5b9bcf267fddd02fcc14b88eac0bebf979f
>
> $ guix pack            \
>      -f docker       \
>      -C none         \
>      -S /bin=bin     \
>      -S /lib=lib     \
>      -S /share=share \
>      -S /etc=etc     \
>      guix
> $ docker load < /gnu/store/8vrdpas5s9alpczixc8bw83x9sxc8if5-docker-pack.tar
>
> $ docker run -ti guix guix --version
>
>
> Obviously, it needs some love (dameon) to fit your use case.

The way I’d do it is by doing:

  guix system docker-image config.scm

where ‘config.scm’ is something minimalist like
<https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/system/examples/bare-bones.tmpl>.

That gives you a Docker image in which ‘guix-daemon’ is running, and
thus you can do “docker run guix build” (roughly) to build things in
that image.  See
<https://guix.gnu.org/manual/devel/en/html_node/Invoking-guix-system.html>.

Would that work for you, Vincente?

Anyhow, thanks for sharing.  I’ve used Guix on top of a “foreign distro”
for CI, and I think it’s pretty useful in that context!

Ludo’.

  reply	other threads:[~2019-11-26  9:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-21 14:41 Guix in Docker for automated CD/CI of complex software Vicente Eduardo
2019-11-22 14:23 ` Hartmut Goebel
2019-11-22 14:34   ` zimoun
2019-11-22 18:41   ` Vicente Eduardo
2019-11-25 21:33     ` zimoun
2019-11-26  9:59       ` Ludovic Courtès [this message]
2019-11-26 16:54         ` zimoun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wobn9cvy.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=zimon.toutoune@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.