unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#52550] [PATCH 00/10] Further work on the image API.
@ 2021-12-16 13:02 Mathieu Othacehe
  2021-12-16 13:06 ` [bug#52550] [PATCH 01/10] build: image: Add optional closure copy support Mathieu Othacehe
  2021-12-22 21:39 ` [bug#52550] [PATCH 00/10] Further work on the image API Ludovic Courtès
  0 siblings, 2 replies; 13+ messages in thread
From: Mathieu Othacehe @ 2021-12-16 13:02 UTC (permalink / raw)
  To: 52550; +Cc: Mathieu Othacehe

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





^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-12-23  9:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-16 13:02 [bug#52550] [PATCH 00/10] Further work on the image API Mathieu Othacehe
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

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).