From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6GUZB75Y0V6oJwAA0tVLHw (envelope-from ) for ; Fri, 29 May 2020 18:47:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QJDwAr5Y0V5mYQAA1q6Kng (envelope-from ) for ; Fri, 29 May 2020 18:47:26 +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 B936C9402D6 for ; Fri, 29 May 2020 18:47:25 +0000 (UTC) Received: from localhost ([::1]:52676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jek2O-0006Q8-Mn for larch@yhetil.org; Fri, 29 May 2020 14:47:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56174) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jek2G-0006Pn-UC for help-guix@gnu.org; Fri, 29 May 2020 14:47:16 -0400 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]:35836) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jek2F-0004pv-Sw for help-guix@gnu.org; Fri, 29 May 2020 14:47:16 -0400 Received: by mail-lj1-x234.google.com with SMTP id c11so512888ljn.2 for ; Fri, 29 May 2020 11:47:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NfHzd2rCKDaUusoPGQSj7B0cdTxjtkyx9Xlc40mvugc=; b=uWiot3WXZXXrA3558m2DzpbCI1REeNhMgPxoneShLmBbvqLVvPzRetvGSixn1zLsHq dlfuxtm3eUpTxR9eNWEHJIm5UfGUs46PUKbXj1ZaPYG4UtFOn0XRnkB/4iBcQlrbHHR+ ca+ObQ/X2+cO+aWbotE5uBBKF7Oo9ruMbMnghFQbU7TI26wlqAYSej2/IedgzzFtExxW uLHLe6d3tvPYTXaQaf6IQYpCf5yqnlZSbJc/sGHgs/SvJboYs+UqDo5rXMRIxKM0aJ/u Udy/RmbKauPg39iy8croYDNzOSGVbmD6BsnEetTDHuLNdyovWMwnMBXYqJ3OtlDyH1cx jyUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NfHzd2rCKDaUusoPGQSj7B0cdTxjtkyx9Xlc40mvugc=; b=d2TDBR3KMndPkm5eRfnigx6phL8/QhVljGBVdrkHhczGCUcL7xNjzb4L2msKB2ou7U a7RNXslkX6xLlOiAFFmRDyFU3G6/SMGsgQ8bnDWjE34VkqlZG/iKb1ZwFOEjr8/xKZXB /7QhfVlv9j9T8AmcgcuRQTHFMonYwhZYHGf9Bcp0qEd2f/bqOlwL9jKk4+1WRnC5YBFo oRw/YZPXPvawqM01HDThWlZqwAyAOwaZjD3QWNeu1NR+qLX/nWWhpplfZhfQc6q5b4n4 fLNi7gUSPV09s9xxAUC7ePE5FKr4PKwy592FBi67Q+QtX21WtxXC6zV2tdAwt7kyfEyW Mrvg== X-Gm-Message-State: AOAM533LVft8EbWKaXGrKsj+KOW6hEm4Lsom2M8y93bh2tKJGVNt+Jc5 cWEAhWN0wvxv4GKxqP+bbCHIyDSL+1curjSTJFY= X-Google-Smtp-Source: ABdhPJzefLwO0FFDck9QJgLojKErGwiFLm5+ol80Ae5xfQXeHawzNcIeHWTHAYreAxlfDR7rXQ++AxvsRggS09StDck= X-Received: by 2002:a05:651c:118f:: with SMTP id w15mr4765643ljo.211.1590778033939; Fri, 29 May 2020 11:47:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Stephen Scheck Date: Fri, 29 May 2020 14:47:02 -0400 Message-ID: Subject: Re: Guix Docker image inflation To: zimoun Received-SPF: pass client-ip=2a00:1450:4864:20::234; envelope-from=singularsyntax@gmail.com; helo=mail-lj1-x234.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=gmail.com header.s=20161025 header.b=uWiot3WX; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: 7eb+qEKc1T2X On Fri, May 29, 2020 at 2:08 PM zimoun wrote: > How the initial Docker image > singularsyntax/guix-bootstrap:1.1.0-alpine-3.11 is built? > To understand, you use the Docker image > singularsyntax/guix-bootstrap:1.1.0-alpine-3.11 to build another > Docker image namely guix-docker-image.tar using Guix, right? > Well, that is not the point neither the issue. :-) > You can look at the Dockerfile here: https://gitlab.com/singularsyntax-docker-hub/guix-bootstrap It's pretty close to exactly the manual instructions for installing Guix on a "foreign" distro on top of Alpine Linux. Not the point, no, but how else do I obtain a seed Guix Docker image, which I can use to birth clean, pristine "baby" images of Guix's own making? It would be really nice if the Guix project itself provided such an image! > could you try that > > --8<---------------cut here---------------start------------->8--- > GUIX_PATH=/root/.config/guix/current/bin > $GUIX_PATH/guix pull --branch=$CI_COMMIT_REF_NAME--fallback > /root/.config/guix/current/bin/guix pull -d > /root/.config/guix/current/bin/guix package -d > /root/.config/guix/current/bin/guix gc > docker commit > /root/.config/guix/current/bin/guix package --install --fallback jq > --8<---------------cut here---------------end--------------->8--- > > Last, you could try to see what "guix package --list-profiles" says > and then "guix gc --list-dead". root@localhost /gnu/store# guix pull -d root@localhost /gnu/store# guix package --list-profiles /root/.config/guix/current root@localhost /gnu/store# guix package -d guix package: error: profile '/var/guix/profiles/per-user/root/guix-profile' does not exist root@localhost /gnu/store# guix package --list-profiles /root/.config/guix/current root@localhost /gnu/store# du -hs . 4.3G . root@localhost /gnu/store# guix gc finding garbage collector roots... deleting garbage... [0 MiB] deleting '/gnu/store/x7ns2xcp8lfg24zq7gr3y8ffczn1nsxp-guix-d79c917f2-modules' [0 MiB] deleting '/gnu/store/slwkzcmg6r1lr9a16x3krd2ax384p8wr-guix-system' [0 MiB] deleting '/gnu/store/dzifisbdk1gwy2fw2hwzgvdnjak22awl-guix-extra' deleting `/gnu/store/trash' deleting unused links... note: currently hard linking saves 1181.82 MiB guix gc: freed 0.636 MiBs root@localhost /gnu/store# du -hs . 4.3G . root@localhost /gnu/store# guix gc --list-dead finding garbage collector roots... determining live/dead paths... /gnu/store/0bm8h4ns6bymc7q24vhfr0dnb7qab729-guix-cli /gnu/store/0hjjj9dppc5xvq3bfjwbsygrfyqn0rlv-guix-cli /gnu/store/0m0xx2958fgyz8kk093afik5cn4rhrc1-guix-cli-modules /gnu/store/0pi2jhn3a778gc3fm1l31sh07fik4zwa-guix-system-tests-modules /gnu/store/0vwg9aqzs5xrk10vcs4dl105s3f42ilf-guix-b1affd477-modules # Lots more listed...