From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Introducing =?utf-8?B?4oCYZ3VpeCBwYWNr4oCZ?= Date: Mon, 20 Mar 2017 16:14:57 +0100 Message-ID: <87shm8f09a.fsf@elephly.net> References: <87d1dodcnb.fsf@gnu.org> <87h92suaa2.fsf@gnu.org> <87a88grpws.fsf@lassieur.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cpz1a-0007To-8j for guix-devel@gnu.org; Mon, 20 Mar 2017 11:15:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cpz1Y-0007jw-Vf for guix-devel@gnu.org; Mon, 20 Mar 2017 11:15:10 -0400 In-reply-to: <87a88grpws.fsf@lassieur.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?Cl=C3=A9ment?= Lassieur Cc: Andy Wingo , guix-devel Clément Lassieur writes: > Ludovic Courtès writes: > >> Hello Guix! Hello 2.2 Guilers! >> >> ludo@gnu.org (Ludovic Courtès) skribis: >> >>> I’d like to move support for Docker (currently in ‘guix archive’) to >>> this new command because I think it’s more appropriate: ‘guix archive’ >>> is supposed to be rather low-level so it would not create a profile, for >>> instance. >> >> As of right now, ‘guix pack’ can create Docker image (‘guix archive’ >> can no longer do that): >> >> guix pack guile-next -S /opt/guile-2.2.0= -f docker >> >> I’d be grateful if someone could check with Docker that I didn’t break >> anything though. Any takers? :-) > > I just tested it (although I'm probably not the first) and it works > (with "docker load"). Thanks! I also tested it successfully: image=$(guix pack -f docker -S /opt/gnu/bin=bin r) docker load < $image id=$(docker images -q profile | tail -n 1) docker run --rm --tmpfs /tmp:rw,size=787448k,mode=1777 -ti $id /opt/gnu/bin/R This creates an image for R, loads it, starts (and eventually removes) a container in which R runs. For people who find this cumbersome: use containers with Guix instead. Here’s how: guix environment --container --ad-hoc r -- R -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net