From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id HnosIOCtal/NfgAA0tVLHw (envelope-from ) for ; Wed, 23 Sep 2020 02:07:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id EJSuG+Ctal+1WgAAbx9fmQ (envelope-from ) for ; Wed, 23 Sep 2020 02:07:28 +0000 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 A12AB9408DD for ; Wed, 23 Sep 2020 02:07:27 +0000 (UTC) Received: from localhost ([::1]:41244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKuBq-0003E1-JX for larch@yhetil.org; Tue, 22 Sep 2020 22:07:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKuBh-0003Dt-6f for guix-devel@gnu.org; Tue, 22 Sep 2020 22:07:17 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:53821) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kKuBf-000114-EB for guix-devel@gnu.org; Tue, 22 Sep 2020 22:07:16 -0400 Received: by mail-wm1-x332.google.com with SMTP id x23so5357567wmi.3 for ; Tue, 22 Sep 2020 19:07:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZRRICArAYtIHQFJmjRfVC1Pm80wUD2VxhQVZfxS30jg=; b=J55FfGorvhL8KhHjWmxuTqNDPjsgMKhVRU9kSg+PMOtGisrfeNXyXOEw/tY1lNX53R mlQd4iwL1UIgbdMIT1qAvnKwRwBKtF5GkN7i5FNavT+ASdGoWX24wrDHRbJVhZqKWV/w wsF9kLuZuw3XvXgCTgn7KHZm+iYgsAbHlHUNLCqhNBN/bp+h97jKQRayQVUgMlZW7cWp EhlOlxWOX6EBz4V+jDd+cQ0N4UdVlnVVj4T9N+ZEmMITy/3AtQj2D9kXZe/L8Q04I7N8 R60bMyowoNHN6FIsO57+LV4bHuNgVw6BDD/yKKI0BN4YjC5qTxtdGpkjVsKfyoVqI0b7 Gj0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZRRICArAYtIHQFJmjRfVC1Pm80wUD2VxhQVZfxS30jg=; b=bjzuONoxfEm882yKPflBh4KriKWic0r1V/+I9FF/n8DlsfxVVGIdu6ymlerbQPd3/I ifv8Bz3Rogz/VNvkYwsuBbqGdYgLUJMEhH8R1koLwqn/Bsz9cU47g09GLdGgm/k5vMaI wYyZZ1RH4YMCB+910qpNxhBPuZMhqF3anhQPeNHvQYUZY/ayPqktQUF/lT7f6jdsin3v beUiSAxrZGtvRkyetSprNGTxT3K1rioPA8LL4o6UN/ZU5KBkn8EkT9/1YJIw/9k3WcKL gpbOgKdyvVS+PMQTnYG3v6w7S1r733e9ESLZ83TLf8cBk/nj006F1atVvT2TAHT1lxSS Iigg== X-Gm-Message-State: AOAM5307G97SjWaUAT9t7lraE0TN8Wl21IXr1vdP9ZkYWAkaugI2BfqO 5cR3DdxQfMdXS2bkTq2heihvGoiuLaA= X-Google-Smtp-Source: ABdhPJw1zJCTusS/imGvp5I+cFpSm/406qatvcVbdEywSPIIR3+dSXV4hiZCWLOZDw+iOo5zUdJx2g== X-Received: by 2002:a1c:2e17:: with SMTP id u23mr4021414wmu.73.1600826832992; Tue, 22 Sep 2020 19:07:12 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id z127sm6836190wmc.2.2020.09.22.19.07.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2020 19:07:11 -0700 (PDT) From: zimoun To: Guix Devel Subject: Docker image: from profile/manifest to manifest.scm? Date: Wed, 23 Sep 2020 04:07:07 +0200 Message-ID: <86sgb9nt4k.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x332.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=J55FfGor; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: 1.09 X-TUID: r0V/fuoSlfZS Dear, Sometimes ago, we discussed at length the consistency between profile/manifest and the manifest.scm files. And the conclusion =E2=80=93i= f I remember correctly=E2=80=93 was to have somehow a converter; Pierre propose= d a draft. The command guix pack -f docker --save-provenance -m manifest.scm =20=20 builds the Docker image which can be directly loaded via =E2=80=9Cdocker lo= ad=E2=80=9D and even pushed to Docker Hub (say with the tag =E2=80=9Cfoo/bar=E2=80=9D).= Then this very image can be pulled with =E2=80=9Cdocker pull foo/bar=E2=80=9D. Usually, the Docker images are big blobs and hard (nor impossible) to reproduce with the Dockerfile. However, the ones produced by Guix can be reproduced later, even if the final user has only the opaque Docker image. Thanks to the option =E2=80=9C=E2=80=93save-provenance=E2=80=9D. Well, I do not know to find the profile path with the Docker tools. Does someone have a tip? Let the image contains BusyBox, so: docker run -ti b0766a6f8a18 which emacs says the profile is =E2=80=9Cgnu/store/=E2=80=A6-profile=E2=80=9D. And not= e: --8<---------------cut here---------------start------------->8--- $ guix gc -D $(docker run -ti b0766a6f8a18 which emacs) finding garbage collector roots... deleting `/gnu/store/trash' deleting unused links... note: currently hard linking saves 19558.10 MiB --8<---------------cut here---------------end--------------->8--- The =E2=80=9Cprofile/manifest=E2=80=9C is therefore available with: --8<---------------cut here---------------start------------->8--- $ docker run -ti b0766a6f8a18 cat /gnu/store/d18kjh1922ya9xnmz6k3nnlqz71kzq= r4-profile/manifest | head -n30 ;; This file was automatically generated and is for internal use only. ;; It cannot be passed to the '--manifest' option. (manifest (version 3) (packages (("busybox" "1.31.1" "out" "/gnu/store/sz2k7vazy8dmsi1l6zw8ipx2bpwcwq3c-busybox-1.31.1" (propagated-inputs ()) (search-paths ()) (properties (provenance (repository (version 0) (url "https://git.savannah.gnu.org/git/guix.git") (branch "master") (commit "4a2cb3fa0e6384d7ad9f4cc7ca1fb46f63ebdb41") (introduction (channel-introduction (version 0) (commit "9edb3f66fd807b096b48283debdcddccfea34bad") (signer "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))))= )) ("sassc" "3.6.1" "out" [..]=20=20=20=20=20=20 --8<---------------cut here---------------end--------------->8--- The 2 questions are: 1. How can I find this /gnu/store/=E2=80=A6-profile/manifest file with onl= y the Docker tools? 2. What is the status of the converter from profile/manifest to manifest.scm discussed sometimes ago? Thank you in advance. All the best, simon