From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Re: [PATCH] Creating a docker image with Guix Date: Tue, 03 Jan 2017 08:24:18 -0800 Message-ID: <87tw9gyuvh.fsf@gmail.com> References: <87eg0l85qm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cORss-0001NB-CF for guix-devel@gnu.org; Tue, 03 Jan 2017 11:24:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cORsr-0004M5-27 for guix-devel@gnu.org; Tue, 03 Jan 2017 11:24:22 -0500 In-Reply-To: (Ricardo Wurmus's message of "Tue, 3 Jan 2017 16:34:33 +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 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ricardo Wurmus writes: > Ludovic Court=C3=A8s writes: > >> I=E2=80=99m not familiar enough with Docker but I=E2=80=99m under the im= pression that we >> should be able to generate an image without even using Docker. :-) > > The attached patch adds a Docker export feature, so you can do this: > > docker load < \ > $(guix archive --export-docker-image=3D$(readlink -f ~/.guix-profil= e)) > > [...] > > I used it successfully to build an Emacs Docker image like this: > > guix environment --ad-hoc coreutils bash emacs-no-x-toolkit > docker load < $(guix archive --export-docker-image=3D$GUIX_ENVIRONMEN= T) Wow! That's pretty cool. If it's this easy to make a Docker image, I'm sure it'll be a good incentive for Docker users to try out Guix! What happens if I invoke this command while GC is trying to delete the specified path? > +;; See https://github.com/opencontainers/image-spec/blob/master/config.md > +(define (config layer time) > + "Generate a minimal image configuratio for the given LAYER file." Minor typo. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlhr0DIACgkQ3UCaFdgi Rp1Gsg//W85VBCiD59EGcrfXfjUfN33dtKq+t2Kp7nZM0lRm5wqjWfdZP9rtwx0W 9whGXKmeqqjzaVK7GQPM7wt3eQF6AayxzgpWM0eyyY4PNQTPHgIklWeXp9AWnowY z7YDVuc8Dx/0cS4hejx7FO+v1B+XNa0b8DBQc3fZ1bseJR6wrcJrAeZLZ6wx1XdM 16yRvFy9xPxVGrg68IgqB9SvO7xnAJglPIalAovWJFnBgMQ935fOxP+LiorYM8Ct vRhnY5LpZ3xLFTdsTDmslrQnPHYS0TCy6fI1oTQ2fTDPkn9f9jtXBg+IAFtPEpIt AF9ymf799Wg6Ac1t0TmH6gNsKRKoD2hehaxWBvKVvAET/stMSk+L8ROyHz4FU9np PYdhMwbUOiJOqoxvprml8flegC7CrdXSQdt7fXvnSCYKnljzNkboq822494HOpZI QqLNVYVXx2I8i55SeyGzeXR4KCCXZylDX5u/3oU8fqRJb7k0+nWd6YIkg7gtH/fo 5+sWQD4Sd9+aLCd3o3sKrRmRjbg4bwu4LuY6IFtEwMJJIC7MlLoPpM4PCZJIiFl8 VVE9ytWovbxRGlY3CtF6atAAbhKty7MKOyW9SO8k6FeYoxcJ36s8fYMy6uT2/5Ki 0X0TaVJMiWyFSWvbwrHZScd/6/DlTzt/ZhNfWKxhMJKXRweXqt4= =t8+E -----END PGP SIGNATURE----- --=-=-=--