summaryrefslogtreecommitdiff
path: root/guix/scripts
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-03-16 21:41:38 +0100
committerLudovic Courtès <ludo@gnu.org>2017-03-16 22:50:15 +0100
commit84dda5a9c0772b2507fab3209938ead9da2a3442 (patch)
tree8939d6b6ddcf4da4c96e39cf2fd6a0c0b19358e8 /guix/scripts
parentb1edfbc37f2f008188d91f594b046c5986485e47 (diff)
pack: Use a fixed timestamp in Docker images.
* guix/docker.scm (build-docker-image): Add #:creation-time parameter. Use SRFI-19 'date->string' instead of 'strftime' et al. * guix/scripts/pack.scm (docker-image)[build]: Pass #:creation-time to 'build-docker-image'.
Diffstat (limited to 'guix/scripts')
-rw-r--r--guix/scripts/pack.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm
index c6f2145c5c..694b2f2aee 100644
--- a/guix/scripts/pack.scm
+++ b/guix/scripts/pack.scm
@@ -219,7 +219,7 @@ with COMPRESSOR. It can be passed to 'docker load'."
(string-append #$guile-json "/share/guile/site/"
(effective-version)))
- (use-modules (guix docker))
+ (use-modules (guix docker) (srfi srfi-19))
(setenv "PATH"
(string-append #$tar "/bin:"
@@ -227,7 +227,8 @@ with COMPRESSOR. It can be passed to 'docker load'."
(build-docker-image #$output #$profile
#:closure "profile"
- #:compressor '#$(compressor-command compressor)))))
+ #:compressor '#$(compressor-command compressor)
+ #:creation-time (make-time time-utc 0 1)))))
(gexp->derivation (string-append name ".tar."
(compressor-extension compressor))