From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Nieuwenhuizen Subject: Re: Creating a docker image with Guix Date: Tue, 03 Jan 2017 07:31:13 +0100 Message-ID: <87wpecac3y.fsf@gnu.org> References: 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]:55018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOIdE-0002aG-M9 for guix-devel@gnu.org; Tue, 03 Jan 2017 01:31:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOIdB-0006TD-GH for guix-devel@gnu.org; Tue, 03 Jan 2017 01:31:36 -0500 In-Reply-To: (Ricardo Wurmus's message of "Mon, 2 Jan 2017 13:54:30 +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: Ricardo Wurmus Cc: guix-devel 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... Greetings, Jan --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.nl= =20=20