[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Creating a docker image with Guix
From: |
Ludovic Courtès |
Subject: |
Re: Creating a docker image with Guix |
Date: |
Mon, 02 Jan 2017 23:19:29 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Hello!
Ricardo Wurmus <address@hidden> 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 --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 -
What does the resulting image look like?
Would it be enough to generate an “Image JSON Description” in this
format: <https://github.com/docker/docker/blob/master/image/spec/v1.md>?
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. :-)
Thanks for sharing the neat hack!
Ludo’.
- Creating a docker image with Guix, Ricardo Wurmus, 2017/01/02
- Re: Creating a docker image with Guix, David Craven, 2017/01/02
- Re: Creating a docker image with Guix, Hartmut Goebel, 2017/01/02
- Re: Creating a docker image with Guix, Pjotr Prins, 2017/01/02
- Re: Creating a docker image with Guix, John Darrington, 2017/01/02
- Re: Creating a docker image with Guix,
Ludovic Courtès <=
- Re: [PATCH] Creating a docker image with Guix, Ludovic Courtès, 2017/01/04
- Re: [PATCH] Creating a docker image with Guix, Ricardo Wurmus, 2017/01/05
- Re: [PATCH] Creating a docker image with Guix, Thompson, David, 2017/01/05
- Re: [PATCH] Creating a docker image with Guix, Ludovic Courtès, 2017/01/05
- [PATCH] guix archive: '-f docker' supports package names as arguments., Ludovic Courtès, 2017/01/06