From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4ILqKn1LbGfuXgEAqHPOHw:P1 (envelope-from ) for ; Wed, 25 Dec 2024 18:14:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 4ILqKn1LbGfuXgEAqHPOHw (envelope-from ) for ; Wed, 25 Dec 2024 19:14:21 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers eddsa verify failed") header.d=josefsson.org header.s=ed2303 header.b=Je5MbKo+; dkim=fail ("headers rsa verify failed") header.d=josefsson.org header.s=rsa2303 header.b=U20JCdw6; 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=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735150461; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature:openpgp:openpgp; bh=PlXT/qHdmu22MCTVQMQLdmPSRMKvhf93Drwc0ei0NdI=; b=qvJ6+MwCkicAx+e2WCkoJMa5hWMXx1iN8qwZE5whxf+xUlCbX9PKK8y+KP76iPYaLc+x4P OMLP7qTjCcBLG7cwrGau8Sp5fLij9BD3OJcQ5pCNeS7yUG4eiAB1QMRuMxb54Szt3YrRXB GcPMf9deXp9WnAWXuSVCIi+SYFRJ38Xab6vga7fyHJ37QvGVV+0KRGXEfKLpVTigWQSx/G cdExGaZ9i9cYVbDaAM+iB1H2KzPt0WL0MlJJMqqHCOEJAO3la75NfdgxGhj4f1yD1cSyAk OUte8PqdH/tAQfs6WNddQIEUNgNghUxgqTRQccdXL5zFxojgdmMGGNSB5pa4AQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers eddsa verify failed") header.d=josefsson.org header.s=ed2303 header.b=Je5MbKo+; dkim=fail ("headers rsa verify failed") header.d=josefsson.org header.s=rsa2303 header.b=U20JCdw6; 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=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735150461; a=rsa-sha256; cv=none; b=CroQOkF40PI32JaiV0NNJz+Qp29S8IYkEmupFuJcXJBDFKQkTmk9CAr+yfgp9w/qeocjqb BB/NQb+yJQOhFPiQpFpD5cIlw+0b51pcbHvdUNYvHzJdXbXeUkjOKB1t4nZ6DqUMBfGCsF aCse1pav+yDD2he6W21iMNBVzIaWW5eyqy5Lhlqefp4LOKlj/EomhXZSRcAjQVNGIRL2aw kbPlTTtsGKLxVXmQ+2kay/OXt9a3yP/Xq2IVirtP3yr5H1TFW2fWbo6IiYsZRBP7n4n/Lt SQ2EyMd4RIF5KKptoRTjhhjLEwwKJD0gqj9+uqb25KYzUNqktUW9ShsOu8BHJw== 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 96D108F355 for ; Wed, 25 Dec 2024 19:14:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQVtE-0003ZT-MV; Wed, 25 Dec 2024 13:13:48 -0500 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 1tQVtD-0003ZD-D6 for help-guix@gnu.org; Wed, 25 Dec 2024 13:13:47 -0500 Received: from uggla.sjd.se ([2001:9b1:8633::107]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQVtB-00059x-7h; Wed, 25 Dec 2024 13:13:47 -0500 DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=ed2303; h=Content-Type:MIME-Version:Message-ID:In-Reply-To :Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description; bh=PlXT/qHdmu22MCTVQMQLdmPSRMKvhf93Drwc0ei0NdI=; t=1735150413; x=1736360013; b=Je5MbKo+qUi824pn1vJOXVweHg9qTrUPNngZj/bfQoLjpapIvgde3nXifeHzyr6MVOj/DjOOdWb WGxPO3HctCA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=josefsson.org; s=rsa2303; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=PlXT/qHdmu22MCTVQMQLdmPSRMKvhf93Drwc0ei0NdI=; t=1735150413; x=1736360013; b=U20JCdw6xegF6ktjeoISDEU9ChDDZaZCCG8OOGuSS9YXiQyvmdZ2a8Ukle1aiP2ALUOhBQFU3Pq +FU9iU/5G5s59sT0bZC6KM9DaxE+RKFawCNEnmLKOJKVWQXzGD7C/IMQwROpSpJu57uzOt1W2Wla/ D0kP7QcckmEcYNX9iTu8Vvtafl5p1i1JXmtLXHSsvEJdmOZgvq+DJFgXGzp3V9f5JDQcIzvqUqNBD xoZ254e9RRyeayCtI9fCnlFXydAL8VDmSMB5G3sxuvVVuHMi9CvdItQ2mGbox809RnOmlMqs8+W8U vbLnHY22lZudDggggYArDKmvdJFvTIYlFX2afHB1AFxYIKGoO1jSQtrh36TNc/j4AhiXl8uhVw729 NiCM+cCctjTQXaBxfLQBTgmH5V62e2ZUXHpdqN8sda5rNmwyCIrgR5q3zLuKJMcf4sEUIvI+K; Received: from h-178-174-130-130.a498.priv.bahnhof.se ([178.174.130.130]:45434 helo=kaka) by uggla.sjd.se with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1tQVsp-007bzU-Cd; Wed, 25 Dec 2024 18:13:23 +0000 To: help-guix@gnu.org Cc: Ludovic =?iso-8859-1?Q?Court=E8s?= , suhail@bayesians.ca, Cayetano Santos Subject: Re: Container image entrypoints on Gitlab References: <87ttb4d5c8.fsf@inventati.org> <87a5cwd4bn.fsf@inventati.org> <87ed27oqn9.fsf@kaka.sjd.se> <87zfkurbja.fsf@inria.fr> <87zfkulolb.fsf@kaka.sjd.se> <87o71ar4j5.fsf@inria.fr> <87ed25lvol.fsf@kaka.sjd.se> <87h66xgie9.fsf@inria.fr> <87ldw7pp6d.fsf@kaka.sjd.se> <87frmes24y.fsf_-_@kaka.sjd.se> OpenPGP: id=B1D2BD1375BECB784CF4F8C4D73CF638C53C06BE; url=https://josefsson.org/key-20190320.txt X-Hashcash: 1:23:241225:help-guix@gnu.org::Q9MpugI61lCuN99C:5d7n X-Hashcash: 1:23:241225:ludo@gnu.org::kFg9E8Hq4rCFu1Lv:7CX1 X-Hashcash: 1:23:241225:suhail@bayesians.ca::tQ49ONEnzDBFmHjz:7Oxl X-Hashcash: 1:23:241225:csantosb@inventati.org::rs4LwebjceMjOhgv:UFup Date: Wed, 25 Dec 2024 19:13:39 +0100 In-Reply-To: <87frmes24y.fsf_-_@kaka.sjd.se> (Simon Josefsson via's message of "Mon, 23 Dec 2024 19:08:45 +0100") Message-ID: <87ikr7ocks.fsf@kaka.sjd.se> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=2001:9b1:8633::107; envelope-from=simon@josefsson.org; helo=uggla.sjd.se X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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: , Reply-to: Simon Josefsson From: Simon Josefsson via 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-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -9.01 X-Spam-Score: -9.01 X-Migadu-Queue-Id: 96D108F355 X-TUID: DcaDuaHe3vG1 --=-=-= Content-Type: text/plain I believe the GitLab CI entrypoint behaviour boils down to OCI configuration, compare Debian's image: skopeo inspect --config docker://debian:12 ... "config": { "Env": [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ], "Cmd": [ "bash" ] }, The images I generate via 'guix pack': skopeo inspect --config docker://registry.gitlab.com/debdistutils/guix/container:stage1 ... "config": { "Env": [ "PATH=/gnu/store/5n0rm83hn6xwf57iwlrn6sfcr5bfjdv3-profile/bin" ] }, Using `guix pack --entry-point` changes it into: "config": { "Env": [ "PATH=/gnu/store/0plsn32m4xzv4i9ixbx02d42nhbw5hx6-profile/bin" ], "Entrypoint": [ "/gnu/store/0plsn32m4xzv4i9ixbx02d42nhbw5hx6-profile/bash" ] }, However if we want the same behaviour as the debian:12 container image, we want to set "Cmd" instead of "Entrypoint". I found the code for this in guix/docker.scm and guix/scripts/pack.scm but making changes this deep down is beyond me right now. Help? IMHO the best would be if Guix container images looked like this: "config": { "Env": [ "PATH=/gnu/store/5n0rm83hn6xwf57iwlrn6sfcr5bfjdv3-profile/bin" ], "Cmd": [ "bash" ] }, Comparing some other well-known images, fedora:42 has: "config": { "Env": [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "DISTTAG=f42container", "FGC=f42", "FBR=f42" ], "Cmd": [ "/bin/bash" ], "WorkingDir": "/", "Labels": { "maintainer": "Clement Verna \u003ccverna@fedoraproject.org\u003e" } }, AlmaLinux:8 and AlmaLinux:9 has: "config": { "Env": [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ], "Cmd": [ "/bin/bash" ], "WorkingDir": "/" }, Alpine:latest has: "config": { "Env": [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ], "Cmd": [ "/bin/sh" ], "WorkingDir": "/" }, ArchLinux:latest has: "config": { "Env": [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "LANG=C.UTF-8" ], "Cmd": [ "/usr/bin/bash" ], "WorkingDir": "/", Ubuntu:24.04 has: "config": { "Env": [ "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" ], "Cmd": [ "/bin/bash" ], /Simon --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIoEARYIADIWIQSjzJyHC50xCrrUzy9RcisI/kdFogUCZ2xLUxQcc2ltb25Aam9z ZWZzc29uLm9yZwAKCRBRcisI/kdFotTFAP4wpg4lWwha9xKWRR8oStjHHZC2BI1p UOyyeWz1rluLUAEAqxL90RGzu6eTz5+FaSHk4ZV+4ZtrGUOfKCxE2yFBfAY= =+TKG -----END PGP SIGNATURE----- --=-=-=--