From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id uLN9JUc7D2R8cQAASxT56A (envelope-from ) for ; Mon, 13 Mar 2023 16:03:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iFx4JUc7D2TjXQAA9RJhRA (envelope-from ) for ; Mon, 13 Mar 2023 16:03:35 +0100 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 53A8D2EEA4 for ; Mon, 13 Mar 2023 16:03:35 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="c/kJMTOD"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678719815; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=py+hcS6AbjfqmB3vtixBEB3yE6pURlqTB9FJKmGjyeI=; b=RzDlWyA/wNkuorGROTgb3giCALKKN92/HPhdin6Uw6LmRGRFq1VQsA0RiNKtPloEBekuBN q18lpnfCJyrdZGKN6zmfbGfdJT2HGEYKVzAcw3/DdSbeBiiSMMmCZ5MjTYvc/EjrApo7LH RtHRcVgf+v2Kd2fMQe6bzY9f8uW1X/YEljsHIxPwvk8mi38g8Cx88pGQLaC5DtZ8EdkKHS 7OngTTvciiVMLxpOMgWLWdqt59nCdbsuIBJ5fJ4C+RcptplR74I55t+JrGqinnAaUSFlI3 DmKcFM5KbnmocH+EFrLOAZquyWqi+xhQ2O3+mAsViDvgUmkq9ORnDmC3PAxf3g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="c/kJMTOD"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678719815; a=rsa-sha256; cv=none; b=j/XO7e78POPu9zQuxQL1HespWD+Y8GqCBUoOPBDBuAQ9qPMfujoKfOOJjZn+5PKXspIZLf iC+e3logjcyoIhpQVn+WSEyz96m7jeq68Duwq8qmVoGp/7C99rJNwmmUgbRFPF0jcAiyU+ y8/ELnOJrbmGV5hCxyg1kc7TEiOAtPPS1bm/lpzRr6bOrqwWmYpmbItVw2732m7/TXxHwz lOm4sEFdBbvTfnVXqIgdB2+sXHfmvagvOydFqmGNj7lT0aPNuP6vnLHrxTAbgJXlWm4i90 jh74R8RgTxebdaVSmW0n1mOHIqD3TfaFm4dWdl1i22h3dv8Uq+INTcWSZ89cAg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbjha-0007aA-HI; Mon, 13 Mar 2023 11:03: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 1pbjhX-0007V5-NP for guix-patches@gnu.org; Mon, 13 Mar 2023 11:03:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pbjhX-0006Vc-EJ for guix-patches@gnu.org; Mon, 13 Mar 2023 11:03:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pbjhX-0002Ci-8z for guix-patches@gnu.org; Mon, 13 Mar 2023 11:03:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62153] [PATCH 1/2] guix: docker: Build layered image. Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 13 Mar 2023 15:03:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62153 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Oleg Pykhalov , 62153@debbugs.gnu.org Cc: Oleg Pykhalov Received: via spool by 62153-submit@debbugs.gnu.org id=B62153.16787197358389 (code B ref 62153); Mon, 13 Mar 2023 15:03:03 +0000 Received: (at 62153) by debbugs.gnu.org; 13 Mar 2023 15:02:15 +0000 Received: from localhost ([127.0.0.1]:35390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbjgl-0002B9-Eb for submit@debbugs.gnu.org; Mon, 13 Mar 2023 11:02:15 -0400 Received: from mail-wm1-f46.google.com ([209.85.128.46]:40910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbjgh-0002AN-1m for 62153@debbugs.gnu.org; Mon, 13 Mar 2023 11:02:11 -0400 Received: by mail-wm1-f46.google.com with SMTP id fm20-20020a05600c0c1400b003ead37e6588so11137022wmb.5 for <62153@debbugs.gnu.org>; Mon, 13 Mar 2023 08:02:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678719725; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=py+hcS6AbjfqmB3vtixBEB3yE6pURlqTB9FJKmGjyeI=; b=c/kJMTODpAcq1VqQ4yJvrepe5+wSC2cU1RwJToqjmU0GyIT53M4FUZY8I/No8FHZ94 SKMwXpKOdFQVpcv41GF4U60xoEoC3cnkwyuY/I25wZ37w02iR48CfUomx8+691amDXEA 9BqZX2GOwoQdAXocZIcNQuwuvc8na99P1caSS6RTrhNBWnGmYUYsxmk/zxbmqeHgaiGJ dMVT0DJ9UE65EROffR8iVMHpd0tLHhy4/jj4y7r/488SdjmMy3bJ/nD8nIRmHEPRqtdU QBW9bcNE5nfkl7V6fVBec7LH7+UmBWU5bWjvT2APzInEHF/vfE+0/wtVb0cIa7ZNOAZr 2kww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678719725; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=py+hcS6AbjfqmB3vtixBEB3yE6pURlqTB9FJKmGjyeI=; b=NSfzRGLhU2hW4pW+USkoZWXITISJmg/WGrgCjBFzTz7cZip6aWMIBVfhMnYkWTbsnB JzflNRct6jSskIwbmwuZ2nq2ggl40jAubMasatZ9ujwnFN0V/KOoAzqj315yne2Z1rZB MlMfRrU/jrSJm8y0YP/NhuK+3ifDqjdA2AXXVdf3fR1AAOYE4uQ+eWggVbqT444I4k6r 84hdCuceJnHSeMJE4oB/wlew9/y4RKJDpzY4Fqn9nfoYtJjJljf+vd68S4YFka9dGskr Z+G2H5olkF9a/LyK/oNn66jLYuTo4PSOk6BPeoaQdzqraRY+AXSQGNYbGG7QLvndZgRB fhDA== X-Gm-Message-State: AO0yUKVk+wUx0fPITzZdp1aghK0A2dGu2d21kgoEDtATZyH6UbWqK1AA pgNUvL/ezca4xeoHjoHP4bs= X-Google-Smtp-Source: AK7set8CqQTfdll5HPJaOneUJigyvqfg7EZd2wuFaomd4nY6rH8sm2x2OxsjgBXKH0uqhkIkFNYYfw== X-Received: by 2002:a05:600c:3c9d:b0:3e2:17c2:fc8 with SMTP id bg29-20020a05600c3c9d00b003e217c20fc8mr12683713wmb.2.1678719725354; Mon, 13 Mar 2023 08:02:05 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id o13-20020a05600c510d00b003e20970175dsm10468044wms.32.2023.03.13.08.02.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Mar 2023 08:02:05 -0700 (PDT) From: Simon Tournier In-Reply-To: <20230313003310.17129-1-go.wigust@gmail.com> References: <20230313003012.14325-1-go.wigust@gmail.com> <20230313003310.17129-1-go.wigust@gmail.com> Date: Mon, 13 Mar 2023 16:01:04 +0100 Message-ID: <87r0tsk85r.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 53A8D2EEA4 X-Spam-Score: -2.12 X-Migadu-Spam-Score: -2.12 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: q3g0mHgKN5e2 Hi, Oh cool! Awesome! Thanks for pushing forward. On lun., 13 mars 2023 at 03:33, Oleg Pykhalov wrote: > diff --git a/gnu/packages/aux-files/python/stream-layered-image.py b/gnu/= packages/aux-files/python/stream-layered-image.py > new file mode 100644 > index 0000000000..9ad2168c2d > --- /dev/null > +++ b/gnu/packages/aux-files/python/stream-layered-image.py > @@ -0,0 +1,391 @@ > +""" > +This script generates a Docker image from a set of store paths. Uses > +Docker Image Specification v1.2 as reference [1]. Instead of Python, would it possible to implement in Guile? I mean, does Python have something that is missing in Guile? The facility for manipulating Tar? Something else? Because then, if I understand correctly=E2=80=A6 > diff --git a/guix/docker.scm b/guix/docker.scm > index 5e6460f43f..f1adad26dc 100644 > --- a/guix/docker.scm > +++ b/guix/docker.scm [...] > + (if stream-layered-image > + (let ((input (open-pipe* OPEN_READ "python3" > + stream-layered-image > + "config.json"))) =E2=80=A6it requires to drag Python for building/packing layered Docker. Well, I have not really look yet to the Python script which does most of the job. Do you use a similar strategy as [1]? And I remember something in that direction by Chris but I am unable to find back the patch. )-: 1: https://grahamc.com/blog/nix-and-layered-docker-images/ Cheers, simon