From: "Ludovic Courtès" <ludo@gnu.org>
To: 35697@debbugs.gnu.org
Cc: Chris Marusich <cmmarusich@gmail.com>
Subject: [bug#35697] [PATCH 0/8] Make 'guix system docker-image' readily usable
Date: Sun, 12 May 2019 12:30:55 +0200 [thread overview]
Message-ID: <20190512103055.16832-1-ludo@gnu.org> (raw)
Hello Guix,
On current master, ‘guix system docker-image’ produces an image without
an entry point, so one has to carefully follow the “GUIX_NEW_SYSTEM hack”
described in the manual.
Furthermore, due to other issues, the resulting image doesn’t properly
boot because it tries to mount file systems that it cannot mount, such as
/dev/shm and /dev/pts.
These patches fix both issues, such that one can just do ‘docker create’
and ‘docker start’ to get Guix System up and running in the container.
I think that’s a nice improvement. :-)
We discussed this Friday on IRC and people said that it’s quite unusual
to provide a “full OS” (with PID 1) as a Docker image; instead, people
would rather do one image per (micro)service. But anyway, that’s
the purpose of ‘guix system docker-image’, and I can imagine it has
use cases too. For example, it’s a simple way to get Guix set up in
a container, for people who want to perform Guix builds in a container.
Thoughts?
Ludo’.
Ludovic Courtès (8):
system: Export 'operating-system-default-essential-services'.
linux-container: Improve filtering of unnecessary file systems.
services: 'gc-root-service-type' now has a default value.
linux-container: Do not add %CONTAINER-FILE-SYSTEMS to Docker image
OSes.
linux-container: Compute essential services for THIS-OPERATING-SYSTEM.
system: Add 'operating-system-with-gc-roots'.
docker: 'build-docker-image' accepts an optional #:entry-point.
vm: 'system-docker-image' provides an entry point.
doc/guix.texi | 18 +++--
gnu/services.scm | 5 +-
gnu/system.scm | 18 ++++-
gnu/system/linux-container.scm | 30 ++++++---
gnu/system/vm.scm | 18 ++++-
gnu/tests/docker.scm | 118 ++++++++++++++++++++++++++++++++-
gnu/tests/install.scm | 11 ---
guix/docker.scm | 15 +++--
8 files changed, 195 insertions(+), 38 deletions(-)
--
2.21.0
next reply other threads:[~2019-05-12 10:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-12 10:30 Ludovic Courtès [this message]
2019-05-12 10:37 ` [bug#35697] [PATCH 1/8] system: Export 'operating-system-default-essential-services' Ludovic Courtès
2019-05-12 10:37 ` [bug#35697] [PATCH 2/8] linux-container: Improve filtering of unnecessary file systems Ludovic Courtès
2019-05-12 10:37 ` [bug#35697] [PATCH 3/8] services: 'gc-root-service-type' now has a default value Ludovic Courtès
2019-05-12 10:37 ` [bug#35697] [PATCH 4/8] linux-container: Do not add %CONTAINER-FILE-SYSTEMS to Docker image OSes Ludovic Courtès
2019-05-12 10:37 ` [bug#35697] [PATCH 5/8] linux-container: Compute essential services for THIS-OPERATING-SYSTEM Ludovic Courtès
2019-05-12 10:38 ` [bug#35697] [PATCH 6/8] system: Add 'operating-system-with-gc-roots' Ludovic Courtès
2019-05-12 10:38 ` [bug#35697] [PATCH 7/8] docker: 'build-docker-image' accepts an optional #:entry-point Ludovic Courtès
2019-05-12 10:38 ` [bug#35697] [PATCH 8/8] vm: 'system-docker-image' provides an entry point Ludovic Courtès
2019-05-15 14:37 ` bug#35697: [PATCH 0/8] Make 'guix system docker-image' readily usable Ludovic Courtès
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://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190512103055.16832-1-ludo@gnu.org \
--to=ludo@gnu.org \
--cc=35697@debbugs.gnu.org \
--cc=cmmarusich@gmail.com \
/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/guix.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).