From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Creating a docker image with Guix Date: Mon, 2 Jan 2017 16:22:49 +0100 Message-ID: References: <20170102150414.GA9378@mail.thebird.nl> 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]:36770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cO4S1-0001l1-9V for guix-devel@gnu.org; Mon, 02 Jan 2017 10:23:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cO4Ry-0001XF-57 for guix-devel@gnu.org; Mon, 02 Jan 2017 10:23:05 -0500 Received: from pegasus.bbbm.mdc-berlin.de ([141.80.25.20]:59107) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cO4Rx-0001WU-Q4 for guix-devel@gnu.org; Mon, 02 Jan 2017 10:23:02 -0500 In-Reply-To: <20170102150414.GA9378@mail.thebird.nl> 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: Pjotr Prins Cc: guix-devel Pjotr Prins writes: > On Mon, Jan 02, 2017 at 01:54:30PM +0100, Ricardo Wurmus wrote: >> I just played around with Docker and built up a command to create a >> Docker image for Emacs. >>=20 >> Can anyone find a more elegant way to do this? > > Not really - you always end up with something like this. We have run > the guix daemon, but that requires docker with privileges.=20 I see three options: * build a base image like I did here * use =E2=80=9CFROM scratch=E2=80=9D and ADD a closure.tar that contains = everything =E2=80=9Cguix gc --requisites=E2=80=9D reports (very slow) * use guix-daemon inside the docker image, but that requires special privileges at container runtime ~~