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 0NcBAVqnaWdIaAAAqHPOHw:P1 (envelope-from ) for ; Mon, 23 Dec 2024 18:09:30 +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 0NcBAVqnaWdIaAAAqHPOHw (envelope-from ) for ; Mon, 23 Dec 2024 19:09:30 +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=mRT4S9T8; dkim=fail ("headers rsa verify failed") header.d=josefsson.org header.s=rsa2303 header.b=fCh32jv6; 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=1734977369; 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=zt2Xl4URTvs2Z2+VFTlw0EM5dzDA8UETTJxH4n/Xtrs=; b=nOVQkJG5YtB8X8E5md0rhlKfWq1aOU6DZx6VJWMQHwtTr3eieUkjEHpd++zf7cViiAezsk Tf23rSzWKIQ1vkH99A7GDaFUQbUB/Ghy1TZvYnumwln6trccnBBdQb3/1Uu+7jaSeLbZtV xUFBtSOqxfK/1KBnTaNB3OP0vdn2QqLgF9HEvJh+MI3JRUizK2jkV9obvq5PZH6nTOF5po PVmA6whNnmSEWf4e3EpKTiZrjwfopA+cUSJHQyAmIQyYLRki9Yj+AvmU9qaVuaObLyZBww v6KjjcoZS3iy9tg7h6L0NPS1FGGzcFy/OFYI/pk0qWb2pM2sVnf7BB5cLrjOcw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers eddsa verify failed") header.d=josefsson.org header.s=ed2303 header.b=mRT4S9T8; dkim=fail ("headers rsa verify failed") header.d=josefsson.org header.s=rsa2303 header.b=fCh32jv6; 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=1734977369; a=rsa-sha256; cv=none; b=rCIa0EM/8h5aeVhM5c40lH7GxIzzwWhcsfm6ce+8h3NjMpimodSzA9V+s0Q1YbT/GoQFGy D3FKmlyM+eNmdbQGkOscYEWdBFFnikMlNjhmtYOQuDKSYKD0hhiK8eZntg+Yw5JlqPUUAs TmSIM3209fkAYk7lYR5qB7YtiHiBPlW10Q16fvq5P8hoG1lo8hNuz2IZLUb66U0MSClNWE 0XsO0moX/oid8xTOurkAagmMT6VStSeuXEWBcpml0UMSlIUv4OCy5Z/eWbpOdEKAR3s5zP YIGxMqbl33qc0qvhFWvORfqEt+mD/ujQ4W7M7coErJQEXni+SJ1jB9Fr2/nMbg== 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 3EC5E8B656 for ; Mon, 23 Dec 2024 19:09:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPmri-0004b6-FC; Mon, 23 Dec 2024 13:09:14 -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 1tPmrg-0004aI-OZ for help-guix@gnu.org; Mon, 23 Dec 2024 13:09:12 -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 1tPmre-0008NT-Nc; Mon, 23 Dec 2024 13:09:12 -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=zt2Xl4URTvs2Z2+VFTlw0EM5dzDA8UETTJxH4n/Xtrs=; t=1734977326; x=1736186926; b=mRT4S9T8i9PcVbWgamdrqv7NrI55zh8rT78z+sojJwDWubSx1JgpGLJk9r/xshQhkIhMTkw2aYO 0zBZn1I1wAA==; 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=zt2Xl4URTvs2Z2+VFTlw0EM5dzDA8UETTJxH4n/Xtrs=; t=1734977326; x=1736186926; b=fCh32jv6uQk9hsMYXO3ospICE4b5HdbDO9os0oAN7ktQ1kwEXYlA/AddiRXGnxiFkBISaGGw3M3 j28PuML46gkFQpulzirqDXgpbYv027f1Z6ZFRUTHOJAmzXsrtCfYJWoKEpvMwzU+RWyV/f1rsoOM/ 6mcCbLCxRZCt1UjzJ9tI3mN0eJty88Y7BziVy2Z2LO5NyllN9/868e7x2YH+isCAIQ52ZPq84G34f eeulW2QIMmu3I1jp4TUKmF7WRM2jpkySd+3KgajFURMvolMWYqD03c5o+mun5Xe3CRYHeD3iOlF+l iv3fOFjHu9Gwp3UoMeNkux+gFehxUvsUYaZwSOgeYTyFwe2xbdIIKsw5kTSiUw73V/bUcl0CCF8c3 8StB/XHF3xyPequcKL1jwvimgW+2SPKbFu26LAEDnzpDDdP6tzR9g/mch2bbIDhourn1Bf/1D; Received: from h-178-174-130-130.a498.priv.bahnhof.se ([178.174.130.130]:37450 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 1tPmr1-0045Ss-Bf; Mon, 23 Dec 2024 18:08:31 +0000 To: help-guix@gnu.org Cc: Ludovic =?iso-8859-1?Q?Court=E8s?= , suhail@bayesians.ca, Cayetano Santos Subject: Container image entrypoints on Gitlab (was: Re: Building a Docker image for GitLab-CI) 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> OpenPGP: id=B1D2BD1375BECB784CF4F8C4D73CF638C53C06BE; url=https://josefsson.org/key-20190320.txt X-Hashcash: 1:23:241223:help-guix@gnu.org::RcqTZa8W9muq8Z7m:7Tbi X-Hashcash: 1:23:241223:suhail@bayesians.ca::7UArATx2JkrStL1F:7dmM X-Hashcash: 1:23:241223:ludo@gnu.org::L0WwtIZ8TvL6VDS0:AypK X-Hashcash: 1:23:241223:csantosb@inventati.org::g+udUfHT5yK/NAYw:j0uD Date: Mon, 23 Dec 2024 19:08:45 +0100 In-Reply-To: <87ldw7pp6d.fsf@kaka.sjd.se> (Simon Josefsson via's message of "Sun, 22 Dec 2024 19:07:06 +0100") Message-ID: <87frmes24y.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: -8.11 X-Spam-Score: -8.11 X-Migadu-Queue-Id: 3EC5E8B656 X-TUID: JdJXKPyAWuc/ --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Simon Josefsson via writes: > I didn't test now but I think Debian images handle all three entrypoint > values, but the 'guix pack' image doesn't. That was not true! Here the situation: https://gitlab.com/debdistutils/guix/container/-/pipelines/1600726433 Debian fails on these two GitLab .gitlab-ci.yml variants: image: name: debian:stable entrypoint: ["/bin/sh"] image: name: debian:stable entrypoint: ["/bin/sh", "-c"] And works on these two variants: image: name: debian:stable entrypoint: [""] image: debian:stable The last one is what I suppose most people want to use. One shouldn't have to specify entrypoint's when using GitLab CI/CD images. My Guix container:latest works on these three variants: image: name: debian:stable entrypoint: ["/bin/sh", "-c"] image: name: debian:stable entrypoint: [""] image: debian:stable And fail on this variant: image: name: debian:stable entrypoint: ["/bin/sh"] At least we are not worse than Debian here. However there is another difference, local run of Debian images handle both these variants: jas@kaka:~/src/guix-container$ podman run -it --rm debian:trixie-slim root@f9634c8d6b63:/#=20 exit jas@kaka:~/src/guix-container$ podman run --entrypoint /bin/sh -it --rm deb= ian:trixie-slim #=20 jas@kaka:~/src/guix-container$=20 But my Guix images doesn't: jas@kaka:~/src/guix-container$ podman run -it --rm registry.gitlab.com/debd= istutils/guix/container:latest Error: no command or entrypoint provided, and no CMD or ENTRYPOINT from ima= ge jas@kaka:~/src/guix-container$ podman run --entrypoint /bin/sh -it --rm reg= istry.gitlab.com/debdistutils/guix/container:latest sh-5.1# exit jas@kaka:~/src/guix-container$=20 Presumably because of a missing '--entry-point=3D/bin/sh' when building the images using 'guix pack'. So let's add it! Yes this now works: jas@kaka:~/src/guix-container$ podman run -it --rm registry.gitlab.com/debd= istutils/guix/container:latest2 sh-5.1# exit jas@kaka:~/src/guix-container$ podman run --entrypoint /bin/sh -it --rm reg= istry.gitlab.com/debdistutils/guix/container:latest2 sh-5.1# exit jas@kaka:~/src/guix-container$=20 However this breaks GitLab CI/CD usage: image: $CI_REGISTRY_IMAGE:latest2 https://gitlab.com/debdistutils/guix/container/-/jobs/8713593164 Ouch, that is the primary use-case we want to support! So until someone figures this one out, I've opted that the default images require --entrypoint when invoked local on laptops with podman but work without any configuration from GitLab shared runners and normal .gitlab-ci.yml usage. /Simon --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIoEARYIADIWIQSjzJyHC50xCrrUzy9RcisI/kdFogUCZ2mnLRQcc2ltb25Aam9z ZWZzc29uLm9yZwAKCRBRcisI/kdFotbhAQD+GlD5wBvC5WfKLwPNhZq4bPDa8BD+ kJAIbm00uIY/QwD/fTdey9zJ/Kh3IG2zTxh0RAnfMB+5aoiITVHKgomapAc= =FETY -----END PGP SIGNATURE----- --=-=-=--