unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: "Elias Mårtenson" <lokedhs@gmail.com>
Cc: John Wiegley <jwiegley@gmail.com>, Richard Stallman <rms@gnu.org>,
	emacs-devel <emacs-devel@gnu.org>
Subject: Re: official Emacs Docker image
Date: Fri, 06 Jan 2017 16:56:50 +0100	[thread overview]
Message-ID: <87wpe8chbx.fsf@elephly.net> (raw)
In-Reply-To: <CADtN0W+we6rzyrmB2wfvcePEdQZr3c_MLP-dk2f5wD_E+b-zzA@mail.gmail.com>


Elias Mårtenson <lokedhs@gmail.com> writes:

> On 1 January 2017 at 17:03, Ricardo Wurmus <rekado@elephly.net> wrote:
>
>>
>> Elias Mårtenson <lokedhs@gmail.com> writes:
>>
>> > Arguably there should be a fully free distribution that could be the base
>> > for more than just Emacs.
>>
>> GuixSD is a fully free GNU distribution and it comes with the tools that
>> are needed to determine runtime dependencies that can then turned into a
>> Docker image.  Since Guix is a functional package manager and thus can
>> account for the full closure of a package it doesn’t require a base
>> image and can be the base itself.
>
>
> I have to admit that I don't fully know what Guix is, but based on what you
> say, it would still make sense to have a base (Guix, in this case) that
> other containers base themselves on. That way the storage can be shared
> between containers.

Guix is a functional package manager.  Given a package it can extract
the “closure” of the package, i.e. the package and all its dependencies,
recursively.

Since commit 03476a23f Guix can build Docker images without requiring
Docker, simply by recursively exporting a package along with its
dependencies, all the way down to things like the glibc.

Here’s how to build a Docker image of Emacs (along with coreutils and
bash, so that M-x shell and a couple more things work out of the box):

    guix environment --ad-hoc emacs-no-x-toolkit coreutils bash
    guix archive --export -f docker $GUIX_ENVIRONMENT

The generated archive can the be loaded with “docker load”.  A user can
then run Emacs with the usual “docker run … $imageid /bin/emacs”
invocation.

For simpler packages it would be sufficient to do something like this:

    guix archive --export -f docker $(guix build the-package)

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
http://elephly.net




  reply	other threads:[~2017-01-06 15:56 UTC|newest]

Thread overview: 126+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-10 13:57 Move to a cadence release model? John Yates
2015-11-10 14:28 ` John Wiegley
2015-11-10 16:42   ` Eli Zaretskii
2015-11-10 17:03     ` John Wiegley
2015-11-11  0:17       ` Release process (was Re: Move to a cadence release model?) Stephen Leake
2015-11-11  0:24         ` John Wiegley
2015-11-11  3:45         ` Eli Zaretskii
2015-11-11 10:45           ` Stephen Leake
2015-11-11 15:43             ` Eli Zaretskii
2015-11-11 23:06               ` bug policy (was Re: Release process) Stephen Leake
2015-11-12 16:12                 ` Eli Zaretskii
2015-11-12 16:39                   ` John Wiegley
2015-11-12 17:36                     ` Eli Zaretskii
2015-11-12 17:50                       ` John Wiegley
2015-11-12 18:04                         ` Eli Zaretskii
2015-11-11 16:39             ` Release process (was Re: Move to a cadence release model?) John Wiegley
2015-11-12  8:19               ` Xue Fuqiao
2015-11-17  0:09                 ` Xue Fuqiao
2015-11-12  8:15             ` Xue Fuqiao
2015-11-10 14:32 ` Move to a cadence release model? Alan Mackenzie
2015-11-10 17:13   ` Eli Zaretskii
2015-11-10 17:11 ` Eli Zaretskii
2015-11-10 17:37   ` Óscar Fuentes
2015-11-10 17:44     ` Automate Emacs UI testing? (was: Move to a cadence release model?) John Wiegley
2015-11-10 18:01       ` Automate Emacs UI testing? Ashton Kemerling
2015-11-10 18:02       ` Automate Emacs UI testing? (was: Move to a cadence release model?) Eli Zaretskii
2015-11-10 19:16       ` Automate Emacs UI testing? joakim
2015-11-10 19:37         ` John Wiegley
2015-11-11 16:59         ` Richard Stallman
2015-11-11 17:18           ` joakim
2015-11-11 23:27             ` Richard Stallman
2015-11-12  2:26               ` official Emacs Docker image (was: Automate Emacs UI testing?) Ted Zlatanov
2015-11-12 15:49                 ` official Emacs Docker image Nic Ferrier
2015-11-12 21:01                   ` Ricardo Wurmus
2015-11-12 22:31                 ` official Emacs Docker image (was: Automate Emacs UI testing?) Richard Stallman
2015-11-12 23:32                   ` official Emacs Docker image joakim
2016-07-06 15:22                   ` Ted Zlatanov
2016-07-07 21:56                     ` Richard Stallman
2016-07-08 13:36                       ` Ted Zlatanov
2016-07-09 16:54                         ` Richard Stallman
2016-07-09 23:04                           ` Ted Zlatanov
2016-07-10 14:25                             ` Richard Stallman
2016-07-12 22:45                             ` John Wiegley
2016-07-13 13:12                               ` Richard Stallman
2016-07-13 16:34                                 ` John Wiegley
2016-12-30  0:10                                   ` Richard Stallman
2016-12-30  0:53                                     ` John Wiegley
2016-12-30 21:36                                       ` Richard Stallman
2016-12-30 22:01                                         ` joakim
2016-12-30 22:08                                         ` John Wiegley
2016-12-31 18:25                                           ` Richard Stallman
2017-01-27 14:56                                             ` Ted Zlatanov
2017-01-27 19:45                                               ` Filipe Silva
2017-01-30 14:36                                                 ` Ted Zlatanov
2017-01-30 17:10                                                 ` Ricardo Wurmus
2017-01-30 17:44                                                   ` Ted Zlatanov
2017-01-31  0:14                                                     ` Filipe Silva
2017-01-31 14:32                                                       ` Ted Zlatanov
2017-02-01  3:03                                                         ` Richard Stallman
2017-02-01 15:25                                                           ` Ted Zlatanov
2017-02-02  2:53                                                             ` Richard Stallman
2017-02-02  5:13                                                               ` Mike Gerwitz
2017-02-02 14:21                                                               ` Ted Zlatanov
2017-02-03  7:00                                                                 ` Stefan Reichör
2017-02-03 11:18                                                                   ` Filipe Silva
2017-02-04  2:56                                                                     ` Mike Gerwitz
2017-02-03 13:45                                                                   ` Ted Zlatanov
2017-02-03 21:59                                                                     ` Richard Stallman
2017-02-03 23:38                                                                       ` Ted Zlatanov
2017-02-03 23:54                                                                         ` Jean-Christophe Helary
2017-02-04  0:37                                                                           ` Filipe Silva
2017-02-04  1:12                                                                             ` Jean-Christophe Helary
2017-02-04  1:32                                                                               ` Filipe Silva
2017-02-04 23:52                                                                               ` Richard Stallman
2017-02-05  0:24                                                                                 ` Jean-Christophe Helary
2017-02-04 23:54                                                                             ` Richard Stallman
2017-02-04  3:11                                                                         ` Mike Gerwitz
2017-02-04  4:13                                                                           ` Ted Zlatanov
2017-02-04  4:47                                                                             ` Mike Gerwitz
2017-02-06 10:49                                                                               ` Giuseppe Scrivano
2017-02-13  8:37                                                                                 ` Richard Stallman
2017-02-13  9:55                                                                                   ` Giuseppe Scrivano
2017-02-14  0:48                                                                                     ` Richard Stallman
2017-02-14  2:07                                                                                       ` Mike Gerwitz
2017-02-14  2:04                                                                                 ` Mike Gerwitz
2017-02-04 23:54                                                                             ` Richard Stallman
2017-02-05  0:47                                                                               ` Ted Zlatanov
2017-02-04 23:48                                                                 ` Richard Stallman
2017-01-28  2:18                                               ` Richard Stallman
2017-02-21 15:01                                               ` Philippe Vaucher
2017-03-02 15:03                                                 ` Ted Zlatanov
2017-03-03 10:09                                                   ` Philippe Vaucher
2017-03-03 10:15                                                     ` Philippe Vaucher
2017-03-08 20:30                                                       ` Philippe Vaucher
2017-03-13 10:03                                                         ` Philippe Vaucher
2018-04-04 18:33                                                         ` Philippe Vaucher
2016-12-31 22:04                                         ` Ricardo Wurmus
2017-01-01  5:39                                           ` Elias Mårtenson
2017-01-01  9:03                                             ` Ricardo Wurmus
2017-01-01 10:15                                               ` Elias Mårtenson
2017-01-06 15:56                                                 ` Ricardo Wurmus [this message]
2017-01-07 23:19                                                   ` Philippe Vaucher
2016-12-31  1:22                                       ` Yann Hodique
2016-12-31  2:08                                         ` John Wiegley
2017-01-28 11:06                                       ` Alex Bennée
2016-12-31 10:11                                     ` Philippe Vaucher
2016-07-13 14:41                               ` Ted Zlatanov
2015-11-12 11:36         ` Automate Emacs UI testing? Mathieu Lirzin
2015-11-12 11:43           ` joakim
2015-11-10 18:20 ` Move to a cadence release model? Richard Stallman
2015-11-10 23:50   ` Xue Fuqiao
2015-11-10 23:58     ` John Wiegley
2015-11-11  1:55       ` John Yates
2015-11-11  9:02         ` Xue Fuqiao
2015-11-11 15:37         ` Eli Zaretskii
2015-11-12 22:35         ` Richard Stallman
2015-11-11 15:49       ` Eli Zaretskii
2015-11-12 11:27         ` Stelian Iancu
2015-11-12 16:22           ` Eli Zaretskii
2015-11-12 16:44             ` Stelian Iancu
2015-11-12 16:57               ` Eli Zaretskii
2015-11-11 15:48     ` Eli Zaretskii
2015-11-12  7:23       ` Xue Fuqiao
2015-11-12  7:37         ` Xue Fuqiao
2015-11-12 16:15         ` Eli Zaretskii
2015-11-20  3:02 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wpe8chbx.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=emacs-devel@gnu.org \
    --cc=jwiegley@gmail.com \
    --cc=lokedhs@gmail.com \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).