Subject: bug#75399: closed (Re: [bug#75399] [PATCH] guix: docker: Add history field to config.json.)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 07 Jan 2025 18:15:02 +0000

Your bug report

#75399: [PATCH] guix: docker: Add history field to config.json.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
75399: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=75399
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#75399] [PATCH] guix: docker: Add history field to config.json.
From: Ludovic Courtès <[email-masked]>
To: Romain GARBAGE <[email-masked]>
Cc: [email-masked]
Date: Tue, 07 Jan 2025 19:14:22 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Romain GARBAGE <[email-masked]> skribis:

> * guix/docker.scm (config): Add history field.
>
> Change-Id: If1d4e9e2ce7673588f9016b389e4c67afa7ac119

Pushed as e94d35e522aa10ab715b53bce91ed397f59b9bd9, thanks!

Subject: [PATCH] guix: docker: Add history field to config.json.
From: Romain GARBAGE <[email-masked]>
To: [email-masked]
Cc: [email-masked], Romain GARBAGE <[email-masked]>
Date: Mon, 6 Jan 2025 12:15:13 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* guix/docker.scm (config): Add history field.

Change-Id: If1d4e9e2ce7673588f9016b389e4c67afa7ac119
---
 guix/docker.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/guix/docker.scm b/guix/docker.scm
index 1c6f59568f..b33c5824dd 100644
--- a/guix/docker.scm
+++ b/guix/docker.scm
@@ -135,6 +135,11 @@ (define* (config layers-diff-ids time arch #:key entry-point (environment '()))
                        `((entrypoint . ,(list->vector entry-point)))
                        '())))
     (container_config . #nil)
+    ;; Some container engines such as <https://github.com/cea-hpc/pcocc> require
+    ;; these fields.
+    (history . ,(list->vector `(((created . ,time)
+                                 (created_by . "guix pack -f docker")
+                                 (comment . "guix pack")))))
     (os . "linux")
     (rootfs . ((type . "layers")
                (diff_ids . ,(list->vector layers-diff-ids))))))

base-commit: 831b94a1efcea8f793afc949b5123a6235c9bb1a
-- 
2.46.0