From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: Guix in Docker for automated CD/CI of complex software Date: Tue, 26 Nov 2019 10:59:29 +0100 Message-ID: <87wobn9cvy.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55918) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZXd7-0003jl-BZ for guix-devel@gnu.org; Tue, 26 Nov 2019 04:59:34 -0500 In-Reply-To: (zimoun's message of "Mon, 25 Nov 2019 22:33:17 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: zimoun Cc: Guix Devel Hi Vincente & all, zimoun 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=3Dbin \ > -S /lib=3Dlib \ > -S /share=3Dshare \ > -S /etc=3Detc \ > guix > $ docker load < /gnu/store/8vrdpas5s9alpczixc8bw83x9sxc8if5-docker-pack.t= ar > > $ docker run -ti guix guix --version > > > Obviously, it needs some love (dameon) to fit your use case. The way I=E2=80=99d do it is by doing: guix system docker-image config.scm where =E2=80=98config.scm=E2=80=99 is something minimalist like . That gives you a Docker image in which =E2=80=98guix-daemon=E2=80=99 is run= ning, and thus you can do =E2=80=9Cdocker run guix build=E2=80=9D (roughly) to build = things in that image. See . Would that work for you, Vincente? Anyhow, thanks for sharing. I=E2=80=99ve used Guix on top of a =E2=80=9Cfo= reign distro=E2=80=9D for CI, and I think it=E2=80=99s pretty useful in that context! Ludo=E2=80=99.