From: "Ludovic Courtès" <ludo@gnu.org>
To: Simon Josefsson <simon@josefsson.org>
Cc: 75090@debbugs.gnu.org
Subject: bug#75090: Make 'guix pack -f docker' tarballs reproducible?
Date: Tue, 07 Jan 2025 23:57:41 +0100 [thread overview]
Message-ID: <87jzb6xme2.fsf@gnu.org> (raw)
In-Reply-To: <87msgjofih.fsf@kaka.sjd.se> (Simon Josefsson's message of "Wed, 25 Dec 2024 18:10:14 +0100")
Hi Simon,
Simon Josefsson <simon@josefsson.org> skribis:
> I am creating docker archives using:
>
> guix pack guix bash-minimal coreutils-minimal net-base --save-provenance -S /bin=bin -S /share=share -f docker --image-tag=guix --max-layers=8 --verbosity=2
>
> To my surprise the output was not reproducible between re-runs.
>
> The reason is because of the timestamp and ownership information in the
> outer tarball. The internals are identical and reproducible. See
> diffoscope output below.
>
> I tried to work around it by wrapping either the 'guix pack' or
> 'guix-daemon' commands with this environment variable, which I suggest
> for inspiration as additional parameters to tar:
>
> TAR_OPTIONS="--owner=0 --group=0 --numeric-owner --sort=name --mode=go+u,go-w --mtime=@0"
>
> I would prefer 'guix pack' produced reproducible archives by default.
Indeed. I sent a fix based on your suggestion:
<https://issues.guix.gnu.org/75426>.
Thanks,
Ludo’.
prev parent reply other threads:[~2025-01-07 22:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-25 17:10 bug#75090: Make 'guix pack -f docker' tarballs reproducible? Simon Josefsson via Bug reports for GNU Guix
2025-01-07 22:57 ` Ludovic Courtès [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87jzb6xme2.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=75090@debbugs.gnu.org \
--cc=simon@josefsson.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).