From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Running IceCat in a container Date: Tue, 30 Jan 2018 03:19:38 +0100 Message-ID: <87k1w0rsud.fsf@elephly.net> References: <87vag2wopo.fsf@gnu.org> <877esh3gwd.fsf@gnu.org> <87tvvlrzlc.fsf@gnu.org> <87efmeuhvb.fsf@gnu.org> <87zi51r3cg.fsf@gnu.org> <87po5xgtue.fsf@gnu.org> <87lgggligx.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 ([2001:4830:134:3::10]:40987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egLWl-0000Oq-K7 for help-guix@gnu.org; Mon, 29 Jan 2018 21:20:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egLWg-0007Uv-Bz for help-guix@gnu.org; Mon, 29 Jan 2018 21:20:02 -0500 In-reply-to: <87lgggligx.fsf@gnu.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: help-guix@gnu.org Ludovic Court=C3=A8s writes: > Actually there are really two approaches we could use. One is to create > wrappers like this one that do the right thing, independently of what > the user=E2=80=99s profile contains (=E2=80=98guix package=E2=80=99 could= even generate wrappers > automatically in some cases.) > > The second approach is a =E2=80=98guix run/environment=E2=80=99 kind of c= ommand that > generates the environment at run time. > > There are pros and cons to both, I think. This is just a tangent: I=E2=80=99ve been thinking that =E2=80=9Cguix run=E2=80=9D (or an extension= of =E2=80=9Cguix container=E2=80=9D) would be great not only for running applications in containers that are *already* in the store, but also to run applications from tarballs that were generated with "guix pack=E2=80=9C. pack=3D$(guix pack $(readlink -f $HOME/.guix-profile) -S /bin=3Dbin) guix run --image=3D${pack} /bin/icecat Look, we=E2=80=99ve got our own container image format! :) This seems to co= ver 85% of all uses of Docker/Singularity in the field of bioinformatics. ~~~ The setup to create configuration files and set environment variables so that the target application feels at home in the container =E2=80=94 that a= ll looks an awful lot like profile hooks to me. Maybe we can have a set of common hooks that we can automatically derive from package inputs? -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net