From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id GFZcAz4oYGZNsQAAe85BDQ:P1 (envelope-from ) for ; Wed, 05 Jun 2024 10:56:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id GFZcAz4oYGZNsQAAe85BDQ (envelope-from ) for ; Wed, 05 Jun 2024 10:56:30 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717577790; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=VhpKRNp2Z0QS2GYsoOqJBCx92bj61H7Yt5vJnnR6ofo=; b=fqHykTEV6R7Jh3iTEtuNCnx6zaOwn19W4Xpy/hNiTdVRa1QKB/hF3ZetBms6Tsh0zuXStt TFMCKwCL06K4PPrIUhsnBpwcsSWpq4pg25QNnqbla1mDcjk9zPpK+/9ft4n0ch+GF8rtAD a69poamsBEIBFZx7Ir34lRR/xUJAW0wbanNmKgc1QFc4bzkTlKjfZ1LoQ4GJIw5OemOhNH vvUH6sWEtjXk1eQ96/BnDH1HbM+P/78jGyYwk0b/7Op8ZDcAOcKdf7/Hy0AlTlWRKB5Cqr OJNprPcFKT4Hnm0HLWg4oWmHrx4qvi1arBE4zIKzxUAk+R/+xp+LvtbEgrf9Sg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717577790; a=rsa-sha256; cv=none; b=c+mmcJrD4KBqmxvYOTYigE7ZUSNoPP5wyknzWlmQeTja5GAxBU2OudzIwDCEDiVJ4G1MXx A9Blapt0xKANPjt7CoEZdaOMBj0ykJ67IuuVRg6S6hE9Il7wdimBQtwe6Ax3AP3+m9Toxl rNRdURA5F5hy/2pQ5fJpQAKIuyVgfthDF664rmipo/h/tNEps5SF2AEtKVyzb8x/9Db34q 1XwFAHES/LY8m3yIfiV6sG7q+xBFN+OtlMiPakLQVGMB89DaVZrYLb4H/w3G7lkjzjAFol copP7Ptfb4Rmn+HB9AiodyooY0hz7pIT8aggzpvCwp4/3J5M/kJW+f3h4xIbyA== 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 9634F6636D for ; Wed, 5 Jun 2024 10:56:29 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sEmRB-0007y0-Dr; Wed, 05 Jun 2024 04:56:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sEmR9-0007xj-SN for help-guix@gnu.org; Wed, 05 Jun 2024 04:56:03 -0400 Received: from hera.aquilenet.fr ([2a0c:e300::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sEmR7-0003w6-F2 for help-guix@gnu.org; Wed, 05 Jun 2024 04:56:03 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id F130AB86; Wed, 5 Jun 2024 10:55:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jRGDfAMKtehq; Wed, 5 Jun 2024 10:55:54 +0200 (CEST) Received: from jurong (unknown [IPv6:2001:861:c4:f2f0::c64]) by hera.aquilenet.fr (Postfix) with ESMTPSA id EA8522D6; Wed, 5 Jun 2024 10:55:53 +0200 (CEST) Date: Wed, 5 Jun 2024 10:55:51 +0200 From: Andreas Enge To: Ludovic =?iso-8859-15?Q?Court=E8s?= Cc: Reza Housseini , help-guix@gnu.org Subject: Re: Building a Docker image for GitLab-CI Message-ID: References: <87bk8kbqpr.fsf@inria.fr> <878qzqtjqy.fsf@housseini.me> <87plsx6j59.fsf@inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87plsx6j59.fsf@inria.fr> Received-SPF: pass client-ip=2a0c:e300::1; envelope-from=andreas@enge.fr; helo=hera.aquilenet.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.84 X-Spam-Score: -5.84 X-Migadu-Queue-Id: 9634F6636D X-Migadu-Scanner: mx13.migadu.com X-TUID: NQHkC+XsXWly Hello, Am Tue, Jun 04, 2024 at 01:29:22PM +0200 schrieb Ludovic Courtès: > My goal would be to be able to use Guix within the image, so I can have > GitLab-CI spawn ‘guix build’ commands (or similar). with a colleague we have set up such a system. He has started from a Debian image and written a docker script to install Guix "manually", which provides our base image. Then Gitlab CI creates a new image from a channels file in the git repository we want to monitor. The command we use is "guix system image -t docker" and not "guix pack"; I am not really familiar with the second command, and as far as I understand the first one has the difference of running the shepherd as the docker command, which in our case starts the guix-daemon and a guix-build-coordinator-agent. (One addition: We use the patch in https://issues.guix.gnu.org/70933 to enable chroot in the container and then run the container in privileged mode.) Maybe we should write up a little blog post once everything is settled. Andreas