From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: guix pack -f docker and name ? Date: Mon, 20 May 2019 21:34:32 +0200 Message-ID: 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]:34640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSo3d-0008Ph-AI for guix-devel@gnu.org; Mon, 20 May 2019 15:34:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSo3c-0006ME-7X for guix-devel@gnu.org; Mon, 20 May 2019 15:34:49 -0400 In-Reply-To: <877ealqgj1.fsf@gnu.org> 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: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: Guix Devel Hi ludo, On Mon, 20 May 2019 at 17:42, Ludovic Court=C3=A8s wrote: > > Hi Simon, > > zimoun skribis: > > > 1. > > The name of the tar is given at the end of the command `guix pack`. If > > you forget to track it, then you need to re-run `guix pack` (obviously > > with the very same parameters) to get it again. > > It is not super user-friendly. :-) > > > > What to think to add an option to name a symbolic link to this file in > > the store ? > > > > Currently, I am doing that by hand: > > guix pack -f docker ... > > # copy the name /gnu/store/-docker-pack.tar > > ln -s paste my-name > > > > In general, I choose my-name as - with > > something to quickly remember what it is and the to be sure of > > what it is. > > 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. > > > 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-prov= enance=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. I do not know if it is the right way. What do people using Docker think ? > You=E2=80=99ve already proposed other improvements to =E2=80=98guix pack = -f=E2=80=99, and I > think you should email a concise reminder to each specific improvement > to bug-guix so we keep track of them. I may be able to work on them > soonish. Ok. You mean one "ticket" by minor "feature"? Or one "ticket" collecting all the minor improvements (items)? All the best, simon