From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: Re: Creating a docker image with Guix Date: Mon, 2 Jan 2017 15:06:53 +0100 Message-ID: <586A5E7D.9080007@crazy-compilers.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cO3GO-00005g-N6 for guix-devel@gnu.org; Mon, 02 Jan 2017 09:07:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cO3GL-0007U2-EO for guix-devel@gnu.org; Mon, 02 Jan 2017 09:07:00 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:39105) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cO3GL-0007TQ-8d for guix-devel@gnu.org; Mon, 02 Jan 2017 09:06:57 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3tsf5W2mynz3hjRV for ; Mon, 2 Jan 2017 15:06:55 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3tsf5W2HP2zvjNd for ; Mon, 2 Jan 2017 15:06:55 +0100 (CET) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id pmmUVF0VuDzG for ; Mon, 2 Jan 2017 15:06:54 +0100 (CET) Received: from hermia.goebel-consult.de (ppp-46-244-155-98.dynamic.mnet-online.de [46.244.155.98]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Mon, 2 Jan 2017 15:06:54 +0100 (CET) Received: from [192.168.110.2] (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id EB86160B33 for ; Mon, 2 Jan 2017 15:06:53 +0100 (CET) In-Reply-To: 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: guix-devel@gnu.org Hi Ricardo, this is really cool! Creating a docker image without even using the "scratch" image. > Can anyone find a more elegant way to do this? I'd suggest to write a small shell-script which dumps the part after "sh -c" into a temporary file. This makes this part more readable. The script would then be easy to extent to accept arguments, esp. the list of packages to install. Maybe you could use some other shell-tricks to avoid the temporary file. -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |