vm: 'system-docker-image' provides an entry point.
authorLudovic Courtès <ludo@gnu.org>
Sun, 12 May 2019 10:21:48 +0000 (12:21 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 15 May 2019 14:36:21 +0000 (16:36 +0200)
commit247649d42e60b718f3f46b2bcf72d19bf799d503
treefac80f7fe0923c2ba21c0f86210d2d99c0669a3d
parent7ff4fde257d43760b0df53334b4df63d16491452
vm: 'system-docker-image' provides an entry point.

This simplifies use of images created with 'guix system docker-image'.

* gnu/system/vm.scm (system-docker-image)[boot-program]: New variable.
[os]: Add it to the GC roots.
[build]: Pass #:entry-point to 'build-docker-image'.
* gnu/tests/docker.scm (run-docker-system-test): New procedure.
(%test-docker-system): New variable.
* doc/guix.texi (Invoking guix system): Remove GUIX_NEW_SYSTEM hack and
'--entrypoint' from the example.  Mention 'docker create', 'docker
start', and 'docker exec'.
doc/guix.texi
gnu/system/vm.scm
gnu/tests/docker.scm