docker: Take a list of directives instead of a list of symlinks.
authorLudovic Courtès <ludo@gnu.org>
Tue, 27 Aug 2019 09:02:14 +0000 (11:02 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 27 Aug 2019 10:20:44 +0000 (12:20 +0200)
commit2b7c89f4fcc5e1607e153939d54d32aeaf494ca9
tree5d3758c60f3c1a7590bab497ea146234d0d09beb
parentb29d6abc8f0aa7cb358954d7f7a8d7ca49c29eea
docker: Take a list of directives instead of a list of symlinks.

* guix/docker.scm (symlink-source, topmost-component): Remove.
(directive-file): New procedure.
(build-docker-image): Remove #:symlinks and add #:extra-files.
Make a sub-directory "extra" and call 'evaluate-populate-directive' for
EXTRA-FILES in that directory.
* guix/scripts/pack.scm (docker-image)[build](symlink->directives,
directives): New procedures.
Pass #:extra-files instead of #:symlinks to 'build-docker-image'.
guix/docker.scm
guix/scripts/pack.scm