Re: [PATCH] Creating a docker image with Guix

2017-01-05 Thread Ludovic Courtès
Hey! Ricardo Wurmus skribis: > From fefd4f02d003dd35bd0ab459ec2ccc9f9ad62ffa Mon Sep 17 00:00:00 2001 > From: Ricardo Wurmus > Date: Tue, 3 Jan 2017 16:20:15 +0100 > Subject: [PATCH] guix: Add Docker image export. > > * guix/docker.scm: New file. > * Makefile.am (MODULES): Register it. > * guix

Re: [PATCH] Creating a docker image with Guix

2017-01-05 Thread Thompson, David
Hi Ricardo, This is awesome! Just a couple things: 1) The amd64 architecture is hardcoded in the image. Should this instead be set to the current architecture? 2) s/configuratio/configuration/ in the docstring for 'config' in guix/docker.scm Ludovic, Ricardo, anyone else: It might be nice if in

Re: [PATCH] Creating a docker image with Guix

2017-01-05 Thread Ricardo Wurmus
Ludovic Courtès writes: >> --- a/doc/guix.texi >> +++ b/doc/guix.texi >> @@ -2438,6 +2438,12 @@ Read a list of store file names from the standard >> input, one per line, >> and write on the standard output the subset of these files missing from >> the store. >> >> +@item --export-docker-ima

Re: [PATCH] Creating a docker image with Guix

2017-01-04 Thread Ludovic Courtès
Ricardo Wurmus skribis: > Chris Marusich writes: > >> What happens if I invoke this command while GC is trying to delete the >> specified path? > > It will do weird things, I guess. It’s best to do this inside of “guix > environment” as I demonstrated because while you’re in the environment > t

Re: [PATCH] Creating a docker image with Guix

2017-01-04 Thread Ludovic Courtès
Howdy! Ricardo Wurmus skribis: > Ludovic Courtès writes: > >> I’m not familiar enough with Docker but I’m under the impression 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 l

Re: [PATCH] Creating a docker image with Guix

2017-01-03 Thread Ricardo Wurmus
Chris Marusich writes: > What happens if I invoke this command while GC is trying to delete the > specified path? It will do weird things, I guess. It’s best to do this inside of “guix environment” as I demonstrated because while you’re in the environment the temporary profile is protected fro

Re: [PATCH] Creating a docker image with Guix

2017-01-03 Thread Chris Marusich
Ricardo Wurmus writes: > Ludovic Courtès writes: > >> I’m not familiar enough with Docker but I’m under the impression 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 < \ >

[PATCH] Creating a docker image with Guix

2017-01-03 Thread Ricardo Wurmus
Ludovic Courtès writes: > I’m not familiar enough with Docker but I’m under the impression 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

Re: Creating a docker image with Guix

2017-01-03 Thread Ludovic Courtès
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 -- \ >>

Re: Creating a docker image with Guix

2017-01-03 Thread Ricardo Wurmus
Ludovic Courtès writes: > Ricardo Wurmus skribis: > >> I just played around with Docker and built up a command to create a >> Docker image for Emacs. > > Fun! > >> Can anyone find a more elegant way to do this? >> >> guix environment --ad-hoc \ >> coreutils bash emacs-no-x-toolkit -- \ >>

Re: Creating a docker image with Guix

2017-01-02 Thread Jan Nieuwenhuizen
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 $G

Re: Creating a docker image with Guix

2017-01-02 Thread Christopher Allan Webber
Ricardo Wurmus writes: > Hi Guix, > > I just played around with Docker and built up a command to create a > Docker image for Emacs. > > Can anyone find a more elegant way to do this? > > --8<---cut here---start->8--- > guix environment --ad-hoc \ > coreutils

Re: Creating a docker image with Guix

2017-01-02 Thread Ludovic Courtès
Hello! Ricardo Wurmus skribis: > I just played around with Docker and built up a command to create a > Docker image for Emacs. Fun! > 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 --requ

Re: Creating a docker image with Guix

2017-01-02 Thread John Darrington
On Mon, Jan 02, 2017 at 01:54:30PM +0100, Ricardo Wurmus wrote: Hi Guix, I just played around with Docker and built up a command to create a Docker image for Emacs. Can anyone find a more elegant way to do this? "Docker" and "elegant" are two concepts which are

Re: Creating a docker image with Guix

2017-01-02 Thread Ricardo Wurmus
Pjotr Prins writes: > On Mon, Jan 02, 2017 at 01:54:30PM +0100, Ricardo Wurmus wrote: >> I just played around with Docker and built up a command to create a >> Docker image for Emacs. >> >> Can anyone find a more elegant way to do this? > > Not really - you always end up with something like thi

Re: Creating a docker image with Guix

2017-01-02 Thread Pjotr Prins
On Mon, Jan 02, 2017 at 01:54:30PM +0100, Ricardo Wurmus wrote: > I just played around with Docker and built up a command to create a > Docker image for Emacs. > > Can anyone find a more elegant way to do this? Not really - you always end up with something like this. We have run the guix daemon,

Re: Creating a docker image with Guix

2017-01-02 Thread Hartmut Goebel
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 wou

Re: Creating a docker image with Guix

2017-01-02 Thread David Craven
> What do you think? Gross? Cool!

Creating a docker image with Guix

2017-01-02 Thread Ricardo Wurmus
Hi Guix, I just played around with Docker and built up a command to create a Docker image for Emacs. Can anyone find a more elegant way to do this? --8<---cut here---start->8--- guix environment --ad-hoc \ coreutils bash emacs-no-x-toolkit -- \ sh -c '