From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wJGSAnvZDV+PcgAA0tVLHw (envelope-from ) for ; Tue, 14 Jul 2020 16:12:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WEHrOXrZDV9sEwAAB5/wlQ (envelope-from ) for ; Tue, 14 Jul 2020 16:12:42 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 39C669403C9 for ; Tue, 14 Jul 2020 16:12:42 +0000 (UTC) Received: from localhost ([::1]:54598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jvNXr-0002gU-PV for larch@yhetil.org; Tue, 14 Jul 2020 12:12:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jvNXf-0002fN-Av for help-guix@gnu.org; Tue, 14 Jul 2020 12:12:27 -0400 Received: from mail-qk1-x744.google.com ([2607:f8b0:4864:20::744]:39915) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jvNXd-00014x-D1 for help-guix@gnu.org; Tue, 14 Jul 2020 12:12:27 -0400 Received: by mail-qk1-x744.google.com with SMTP id l6so16065569qkc.6 for ; Tue, 14 Jul 2020 09:12:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :cc:to; bh=gShUsWAT6+vSYHdwbQVi4Oj/L3JqwsPmQxSPBAGiqHU=; b=YAcPpNR6S0RO78H0D9WwkpM3/cPr3e6U62WSy3KABVuHiIep04rd7JygtViaYoWrd5 cJGVf6wMpF8a07XqEUqH/lUtkxby4b+T+YN1ol+RBOYzI6GXW/0tBuUVGZ30ks4e9MXq pXW3pks3JmNb12Rzcs6CLzQZd2LZmB98KVJWDDkWes8HfHqdrirdPbNvG3rrmsVVmTrK y9Xnm4oV6fCHhtTl+4V+Jhx7fcSYgccLe34nd05yxHURSznKfCFP0fcYZYbgs7GgKBXt fKPVKKxqey2ABl36CwoKRcIwcIPFvetXElihwNb07BvXHn90UuG8jDaH3CM9w3Tsl9Va yC0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:cc:to; bh=gShUsWAT6+vSYHdwbQVi4Oj/L3JqwsPmQxSPBAGiqHU=; b=Kr3jL95NYqvxJD+La2P/Wv1olMfwwiZpz1PyZmRVEjFtHb0Frw/sbWDvY1IgYrqKnW XIiHgWszPZizK25UwNZ7vVYBPsK5U49BrggQXKcOtQBamVIAu4hVPpQIob026PMURU/M oyL21UHWdfrlgTsenC9L8tVdsUk9BfHfOPdFCxzLtrVRZf3eX9vt4VONzd3lAN3WhtZI Pf3qiQFEJd371KSPuE7EYYhIM22/OcZ4wwbWsCQpq/tQfN+Ca1FGDIJzlkExEJhZA1Dr VU5BP1sctTgk0cm38pCQVTPYgfOKFJQhEQPhxrMk1cRGzQ4v3ekGE/1qG7QnjB/y0fTK nkkw== X-Gm-Message-State: AOAM532CbRaYOFq9TzGu027YsTVjq4czgCuHtBmuMobgBybQFbXzAoZn LDWrMwmMddt+yCZy3dhN7131vbaC X-Google-Smtp-Source: ABdhPJzPLYMtperu8oiY+4r5YGfH+RGa1oZ1omYp5jrJiv9ttstCX08WauFNwsVdqNvgRVLSqXqoEw== X-Received: by 2002:a37:a616:: with SMTP id p22mr5269710qke.292.1594743143702; Tue, 14 Jul 2020 09:12:23 -0700 (PDT) Received: from [192.168.1.129] ([198.135.148.184]) by smtp.gmail.com with ESMTPSA id q194sm22478584qke.90.2020.07.14.09.12.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jul 2020 09:12:22 -0700 (PDT) From: Stephen Scheck Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: Gitlab CI Message-Id: <9E7E0759-1087-4D90-A049-A9769976A713@gmail.com> Date: Tue, 14 Jul 2020 12:12:21 -0400 To: jeremy@korwin-zmijowski.fr X-Mailer: Apple Mail (2.3608.80.23.2.2) Received-SPF: pass client-ip=2607:f8b0:4864:20::744; envelope-from=singularsyntax@gmail.com; helo=mail-qk1-x744.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=YAcPpNR6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -0.21 X-TUID: kEa7WMe5WxwU J=C3=A9r=C3=A9my Korwin-Zmijowski writes: > Hey Guixters ! > > I am experimenting with Gitlab CI for a Guile project I am working on. > It is managed with Hall and I would like to benefit the Guix features. > > Does anyone has done that before ? > Is there a way to get a Guix docker image instead of the Debian one ? Hello J=C3=A9r=C3=A9my, I have been trying to accomplish a similar goal - using Guix in GitLab = CI for a Guile project. To that end, I=E2=80=99ve built some Docker = images you might find interesting: Guix in Alpine Linux https://hub.docker.com/r/singularsyntax/guix-bootstrap/tags https://gitlab.com/singularsyntax-docker-hub/guix-bootstrap (the = Dockerfile and pipeline for deployment to Docker Hub) My goal is to enable typical Docker workflows with Guix, for example = something like this Dockerfile: FROM gnu/guix:1.1.0 RUN guix package =E2=80=94install = Then use the resulting Docker image in the build, test, etc. stages of a = GitLab CI/CD pipeline. Unfortunately, Guix does not have a natural fit with Docker = containerization since `guix-daemon` must be running for any Guix = commands to work. I haven=E2=80=99t been able to get any Dockerfile = workflows like above working, since `docker build` seems to skip = execution of the regular image entry point command which starts = `guix-daemon`. I think to make it work, you=E2=80=99d need to provide = some kind of shell wrapper around the `guix` command which first starts = `guix-daemon`, waits for it to be ready, then runs Guix commands. But = you can use the Alpine image for Docker-in-Docker workflows where you = first start a container with `docker run`, then issue successive `docker = exec` commands to perform work inside the container, then extract the = results from the container for use in other stages of a CI/CD pipeline. I also attempted to build a =E2=80=9Cpure=E2=80=9D Guix container not = requiring installation on top of another Linux distribution by using = `guix system docker-image <=E2=80=A6>`. I even had a GitLab pipeline = making daily builds which you might find interesting (but I recently = disabled it as I=E2=80=99ll explain below): https://hub.docker.com/r/singularsyntax/guix/tags https://gitlab.com/singularsyntax-docker-hub/guix (GitLab CI/CD pipeline = for deployment to Docker Hub) It works fine for obtaining a sandbox for which to experiment = interactively with Guix, but has the same problems as the Alpine image, = and is even a little worse because there are no =E2=80=9Canchor=E2=80=9D = binaries inside the container, not even `/bin/sh`, until the container = init process establishes symlinks into the `/gnu/store` tree. If you try = to use it in scripts or CI/CD pipelines, they often fail due to race = conditions with the init script, and without `/bin/sh` it=E2=80=99s = difficult to reliably assert any pre-conditions inside the container. So = it=E2=80=99s a real pain to work with, and I think of little utility for = scripting as it currently stands. Anyway, hopefully this provides some more insight, and good luck!