From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4AY7Gg/CdGRHhAAASxT56A (envelope-from ) for ; Mon, 29 May 2023 17:17:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YP8cGg/CdGQADwEAauVa8A (envelope-from ) for ; Mon, 29 May 2023 17:17:35 +0200 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 4388631F20 for ; Mon, 29 May 2023 17:17:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3ecj-0008Rn-Qk; Mon, 29 May 2023 11:17:29 -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 1q1rvC-0003LA-CT for Help-Guix@gnu.org; Wed, 24 May 2023 13:05:11 -0400 Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1rv5-0003Rh-0i for Help-Guix@gnu.org; Wed, 24 May 2023 13:05:08 -0400 Received: by mail-qt1-x831.google.com with SMTP id d75a77b69052e-3f389c21fe8so7482811cf.3 for ; Wed, 24 May 2023 10:05:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684947899; x=1687539899; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=PjdjTGBPCosp8cZiVva5L1qNK9SuSa9mxi1olKnyB2U=; b=peElUfShWIO16disavjvQKr1BTZHAV9XA+40fDoOnlduJ9AwZD3uWnpM4YpvdMa/dl Ah2FGzPgWz64k2EXwWE42/YhKxFBZnFWsRnz+up9qUx2GyF5tiW5LnxwYkNN1VYZRsey 2p7XbBfoydPxL8aeVSLChguOvIwlm/G0qRSp63hVC85QdoZPhP6fXNdgB8V2tZyBi6dU oPaC51wCfBiGy/a9ivaO5lP+IUSoltvwMAJ1bJa0UPsiFrMUwFPGrT+dOEZN7lxUN7aX JEgMnHxh8jw6CchuOdsIN3254gmIiboluo87GOEMLFXNWaCc+OaVRQyKGurdJQsXfYWl TqJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684947899; x=1687539899; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=PjdjTGBPCosp8cZiVva5L1qNK9SuSa9mxi1olKnyB2U=; b=hFg8RqCXcZ7sXctKVmxm295kf5RHurjvn+vRz7HOJpj0BDH54bsgBPvxYRLFPCayS9 4kWlYuCiNU9d/yHW+oiPpYTtuw2Yo0S5IYK5GdoqzUU+/KCUKnCQfJg4vNeSwX0603K/ C+dkoJb1DZ3yRfwqh9opCf9UiN6eqH94XsKHofaCl0+6lNEydVbGX/EDDseaoMGI8HbK hwB0Kj32oItv7UUGhsZjo7KPlFjvXgPJt6wGCzh3DiEMzI7EDjWJgrYSFTSUDE4GWJc7 NsSQs3iUPulGXne/bFrpb08eu2Xea2J6uqmZ5LbQGZJVPcnSNwFmarc7BiChxXqQbWew 0K7A== X-Gm-Message-State: AC+VfDzibRVDKWMUGIA/32VHkXdsGKWiL+U7ZwImrH6Z0F/VwXkIwIVv OFg2THshQ+dk6Vp76WmA4q8SfF6Th3nEyVNNU8eMlN+6AF0= X-Google-Smtp-Source: ACHHUZ5PXs1SSYnvzfwrj4UuRSgg1X3/6ADnanOZihwOKzAOMCIrLhfZGMdhDIqw0dzE955GV9tOV3D4S8e+86BzN3M= X-Received: by 2002:a05:622a:1d0:b0:3d2:7f3b:c691 with SMTP id t16-20020a05622a01d000b003d27f3bc691mr28736279qtw.47.1684947899300; Wed, 24 May 2023 10:04:59 -0700 (PDT) MIME-Version: 1.0 From: Graham Addis Date: Wed, 24 May 2023 18:04:47 +0100 Message-ID: Subject: guix docker on gitlab-ci To: Help-Guix@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::831; envelope-from=grahamjamesaddis@gmail.com; helo=mail-qt1-x831.google.com 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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 29 May 2023 11:17:28 -0400 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685373455; a=rsa-sha256; cv=none; b=eI5CDf1XQsCmu/UNcVAZ3VxZ/wqkAquO+rIPF0wcg4xLBKi2zy+UA2B0FymZB+Rht6sQTB Y58niScCDTdL8C5/WmY2hL2fzsevAXZzIMa/yU6cVGk6DPc2truPA0uyHguA79Oub3koq/ xuLjdunW8oKiyAjLdauDrdf+dL/MWBowGScpPm4MFXcU0JAp0BPCgNVTyVkHy0gRS6Eg5/ uUL4OxpiIGMUc81HuwPejT0n49ov+QHglmNpns3x5RDm6KXoJKTY+HWz7kbgjifUCSqrGp 7F5uANkUDH35988p+k3Rp+ZB4RNjWTgAIfhWovk65pG9FgLTyg+e4kHAMiACtw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=peElUfSh; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685373455; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=PjdjTGBPCosp8cZiVva5L1qNK9SuSa9mxi1olKnyB2U=; b=QS9ji/vAMpMwjsgAcDXAXjPMGOw9fuds2KHNRBd5F78wwvVSl+B/2sq17eFEZu2iDYbwSu vLgEfRm1aMWR95iEXIbpA4ZzzaIb1g4Wy0ZhWzWZWB4nDOAj4/XADwI+elk9JxnhXp18Zc upJBPCHBtUhr2LGF7igTEUwx7/gKrevYtgCwWFT7rzrBTeVX/YrO2nYbZTb7KaxUSzZ8FS 83fUO9E9e+hS6m/j+Kuhh8Qviic3qWZ+eyd4NijWlekiFlOAVm2W8Ec3/Kb3zjz4fYki0Y HRYks0ln+KcNi4dTZO/cbdRugDUyRrMV3d33GclyRFd0nJVHddJBDxz2La9SHg== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=peElUfSh; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -5.30 X-Spam-Score: -5.30 X-Migadu-Queue-Id: 4388631F20 X-TUID: ijj7BG//sRAX Dear people, I tried to create a docker image to use in a gitlab-ci instance but it failed because I couldn't use --entry-point="bin/sh -l -c" or equivalent, basically the gitlab-runner complains that it can't run binaries. I've managed to get it working by making some changes to guix/scripts/pack.scm Adding a fn in docker-image, just before the call to build-docker-image, to create a list from the string passed in from --entry-point="bin/sh -l -c" (define (make-docker-exec-form prefix value) (cond ((equal? value '()) '()) ((equal? prefix '()) (string-split value #\space)) (else (let ((values (string-split value #\space))) (cons (string-append prefix "/" (car values)) (cdr values)))))) And replacing the setting of entry-point in the build-docker-image call to: #:entry-point (make-docker-exec-form #$profile #$entry-point) The call to build-docker-image takes a list for entry-point, and it all works fine as far as I can tell. Before I send in a patch, some questions: Am I missing something? Am I on the right track? Should I be splitting this out before the call to docker-image? Thanks, Graham