From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: guix pack -f docker and name ? Date: Tue, 21 May 2019 10:52:49 +0200 Message-ID: <874l5o5gv2.fsf@gnu.org> References: <877ealqgj1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:51775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hT0W0-0001DW-Hh for guix-devel@gnu.org; Tue, 21 May 2019 04:52:57 -0400 In-Reply-To: (zimoun's message of "Mon, 20 May 2019 21:34:32 +0200") 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: zimoun Cc: Guix Devel Howdy! zimoun skribis: > On Mon, 20 May 2019 at 17:42, Ludovic Court=C3=A8s wrote: [...] >> I think =E2=80=98guix pack=E2=80=99 should have a =E2=80=98-r/--root=E2= =80=99 option like =E2=80=98guix build=E2=80=99 >> so you can do: >> >> guix pack -r my-image -f docker foo bar baz >> >> WDYT? > > Yes, it better fits what I am more or less doing by hand. > Nice `guix pack` owns this option. Cool. Note that the advantage is the GC root, but if it=E2=80=99s just abo= ut creating a symlink, you can also do: ln -s $(guix pack -f docker whatever) my-symlink >> > 2. >> > Once loaded with `docker load < /gnu/store/-docker-pack.tar` >> > then `docker image ls` list all the images. The REPOSITORY and TAG are >> > not super helpful. :-) >> > It is always: profile and . >> > >> > Maybe REPOSITORY should be guix and TAG should be -. >> > Because when one has more than 2 images, after holidays it is not >> > possible to remember or they needs to track in a separate file what it >> > is. >> >> I agree, we can do better here. :-) >> >> We could allow for user-provided names, and/or, when =E2=80=98--save-pro= venance=E2=80=99 >> is used, we could show the commit ID or something. >> >> Ideas? > > I was proposing: > guix pack -f docker -r foo > generates the file: > /gnu/store/-docker-pack.tar > where the symlink foo to this file and the field REPOSITORY should be > guix and the field TAG should `foo-` where ` > is let say 6 characters. OK. > I do not know if it is the right way. What do people using Docker think ? Yup, I=E2=80=99m curious what people think best practice is! Because I don= =E2=80=99t really qualify as a =E2=80=9CDocker user=E2=80=9D myself. :-) Thank you, Ludo=E2=80=99.