unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Mathieu Othacehe <othacehe@gnu.org>
To: 52550@debbugs.gnu.org
Cc: Mathieu Othacehe <othacehe@gnu.org>
Subject: [bug#52550] [PATCH 00/10] Further work on the image API.
Date: Thu, 16 Dec 2021 14:02:04 +0100	[thread overview]
Message-ID: <20211216130204.29996-1-othacehe@gnu.org> (raw)

Hello,

This series contains further work on the image API that I have postponed for
over a year. In short:

* The guix system image command now supports the docker image type, which
  means that the docker-image command is deprecated.

* The docker images are not created in a VM (not needed), which results in a
  creation speedup of around 6 times: 3 minutes vs 19 minutes for a simple
  docker image on my x86 machine.

* Most of the (gnu build vm) and (gnu system vm) code is removed. This is code
  was largely duplicated in (gnu build image) and (gnu system image). We now
  have a single entry point for creating images, that is faster, more robust
  and portable.

* I have added a "volatile?" flag to the <virtual-machine> record so that the
  system tests can use a persistent or a volatile storage. I have adapted the
  docker tests to use persistent storage. This means that those tests that
  have been broken for a long time are now fixed.

Thanks,

Mathieu

Mathieu Othacehe (10):
  build: image: Add optional closure copy support.
  image: Add a shared-store? field.
  image: Add a shared-network? field.
  system: image: Add docker support.
  system: vm: Use the image API to generate QEMU images.
  Remove VM generation dead-code.
  scripts: system: Deprecate the docker-image command.
  scripts: system: Pass the volatile field to VM generation.
  scripts: system: Use the disk-image size argument for VM generation.
  tests: docker: Fix it.

 doc/guix.texi            |  23 +-
 gnu/build/image.scm      |  39 ++-
 gnu/build/marionette.scm |  14 +-
 gnu/build/vm.scm         | 500 ----------------------------------
 gnu/image.scm            |   6 +
 gnu/local.mk             |   1 -
 gnu/system/image.scm     | 125 ++++++++-
 gnu/system/vm.scm        | 564 ++++-----------------------------------
 gnu/tests/docker.scm     |  51 ++--
 gnu/tests/install.scm    |   2 +-
 guix/scripts/system.scm  |  32 ++-
 tests/modules.scm        |   6 +-
 12 files changed, 279 insertions(+), 1084 deletions(-)
 delete mode 100644 gnu/build/vm.scm

-- 
2.34.0





             reply	other threads:[~2021-12-16 13:04 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-16 13:02 Mathieu Othacehe [this message]
2021-12-16 13:06 ` [bug#52550] [PATCH 01/10] build: image: Add optional closure copy support Mathieu Othacehe
2021-12-16 13:06   ` [bug#52550] [PATCH 02/10] image: Add a shared-store? field Mathieu Othacehe
2021-12-16 13:06   ` [bug#52550] [PATCH 03/10] image: Add a shared-network? field Mathieu Othacehe
2021-12-16 13:06   ` [bug#52550] [PATCH 04/10] system: image: Add docker support Mathieu Othacehe
2021-12-16 13:06   ` [bug#52550] [PATCH 05/10] system: vm: Use the image API to generate QEMU images Mathieu Othacehe
2021-12-16 13:06   ` [bug#52550] [PATCH 06/10] Remove VM generation dead-code Mathieu Othacehe
2021-12-16 13:06   ` [bug#52550] [PATCH 07/10] scripts: system: Deprecate the docker-image command Mathieu Othacehe
2021-12-16 13:06   ` [bug#52550] [PATCH 08/10] scripts: system: Pass the volatile field to VM generation Mathieu Othacehe
2021-12-16 13:06   ` [bug#52550] [PATCH 09/10] scripts: system: Use the disk-image size argument for " Mathieu Othacehe
2021-12-16 13:06   ` [bug#52550] [PATCH 10/10] tests: docker: Fix it Mathieu Othacehe
2021-12-22 21:39 ` [bug#52550] [PATCH 00/10] Further work on the image API Ludovic Courtès
2021-12-23  9:57   ` bug#52550: " Mathieu Othacehe

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=20211216130204.29996-1-othacehe@gnu.org \
    --to=othacehe@gnu.org \
    --cc=52550@debbugs.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/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).