bug#78210: [PATCH] guix: include store parent dirs in docker layer
Commit Message
Hi Ray,
Ray Miller <ray@1729.org.uk> writes:
> * guix/scripts/pack.scm: add store directory to the docker
> layer.
> * guix/docker.scm: change order of arguments to tar so parent
> directories are added before their contents.
>
> Fixes <https://issues.guix.gnu.org/78210>
>
> Change-Id: I2b103c59981e828c965564ccc5d2415b00a7e52e
I tweaked the commit log and applied it with the changes below.
Thanks!
Ludo’.
@@ -365,6 +365,7 @@ (define* (build-docker-image image paths prefix
(apply invoke "tar" "-cf" "../layer.tar"
`(,@transformation-options
,@(tar-base-options)
+ ;; Add parent directories before their contents.
,@(scandir "."
(lambda (file)
(not (member file '("." "..")))))
@@ -580,7 +580,7 @@ (define* (docker-image name profile
(,source -> ,target))))))
(define directives
- ;; Create /tmp and %store-prefix directories, as some
+ ;; Create the /tmp and %store-prefix directories, as some
;; programs expect them, and create SYMLINKS.
`((directory "/tmp" ,(getuid) ,(getgid) #o1777)
(directory #$(%store-prefix) ,(getuid) ,(getgid) #o755)