From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Creating a docker image with Guix Date: Tue, 03 Jan 2017 13:38:10 +0100 Message-ID: <87inpw71zh.fsf@gnu.org> References: <87wpecac3y.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]:52726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOOMF-0006yP-H9 for guix-devel@gnu.org; Tue, 03 Jan 2017 07:38:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOOMC-0006F2-E3 for guix-devel@gnu.org; Tue, 03 Jan 2017 07:38:27 -0500 In-Reply-To: <87wpecac3y.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Tue, 03 Jan 2017 07:31:13 +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: Jan Nieuwenhuizen Cc: guix-devel Jan Nieuwenhuizen skribis: > Ricardo Wurmus writes: > >> I just played around with Docker and built up a command to create a >> Docker image for Emacs. > > Nice! > >> Can anyone find a more elegant way to do this? >> >> guix environment --ad-hoc \ >> coreutils bash emacs-no-x-toolkit -- \ >> sh -c 'tar -c $(guix gc --requisites $GUIX_ENVIRONMENT) | \ >> docker import -c "ONBUILD RUN [\"$GUIX_ENVIRONMENT/bin/ln\", = \"-s\", \"$GUIX_ENVIRONMENT/bin\", \"/bin\"]" - emacs-base' \ >> && echo -e "FROM emacs-base\nCMD [\"/bin/emacs\"]" | \ >> docker build - > > Could this be used to package and deploy our cross built guile.exe? > > I find myself kind of waiting for some inspiration to take the next > step in the MinGW cross builds... For MinGW, I think it=E2=80=99d be more convenient to just create a standal= one tarball like we do for the Guix binary tarball installation (does Docker now run on Windows anyway?). The =E2=80=98guix pack=E2=80=99 command I have in mind would generalize wha= t =E2=80=9Cmake guix-binary.x86_64-linux.tar.xz=E2=80=9D does. Ludo=E2=80=99.