--- Begin Message ---
Subject: |
[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
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#52550: [PATCH 00/10] Further work on the image API. |
Date: |
Thu, 23 Dec 2021 10:57:13 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hey!
> This is great. I didn’t try to run the code but I did look at the
> patches and it LGTM.
Thanks for having a look :). I added a fix for the nfs test that has
been failing forever before pushing.
Now the hurd test should be the only failing system test!
Thanks,
Mathieu
--- End Message ---