guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#52550] [PATCH 00/10] Further work on the image API.


From: Mathieu Othacehe
Subject: [bug#52550] [PATCH 00/10] Further work on the image API.
Date: Thu, 16 Dec 2021 14:02:04 +0100

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 via email to

[Prev in Thread] Current Thread [Next in Thread]