From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Creating Docker containers in Scheme Date: Wed, 08 Nov 2017 09:44:53 +0100 Message-ID: <87d14tw456.fsf@gnu.org> References: <87lgjoiuf1.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]:49411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCLym-00066W-Tc for guix-devel@gnu.org; Wed, 08 Nov 2017 03:45:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCLyj-0005mK-Oj for guix-devel@gnu.org; Wed, 08 Nov 2017 03:45:00 -0500 In-Reply-To: <87lgjoiuf1.fsf@gnu.org> (Roel Janssen's message of "Thu, 02 Nov 2017 16:15:14 +0100") 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: Roel Janssen Cc: guix-devel Hi, Roel Janssen skribis: > I'd like to create a Docker container from Scheme. Looking at > guix/scripts/pack.scm, I believe something like this should be possible: > > (docker-image "my-container" > (profile-derivation > (packages->manifest (list hello coreutils)))) Move precisely: (mlet %store-monad ((profile (profile-derivation =E2=80=A6))) (docker-image "my-container" profile)) > Is this something we could add to the the public interface of a module? Sure. For now the easiest solution would be to export =E2=80=98docker-imag= e=E2=80=99 from (guix scripts pack). Longer-term, we could rename (guix docker) to (guix build docker) and move =E2=80=98docker-image=E2=80=99 to a new (guix docker) module, but perh= aps we=E2=80=99d also need a (guix pack) modules containing tools that are shared between the docker and tarball backends of =E2=80=98guix pack=E2=80=99. WDYT? Ludo=E2=80=99.