GNU bug report logs -
#62153
[PATCH 0/2] Add Docker layered image for pack and system
Previous Next
Reported by: Oleg Pykhalov <go.wigust <at> gmail.com>
Date: Mon, 13 Mar 2023 00:31:02 UTC
Severity: normal
Tags: patch
Done: Oleg Pykhalov <go.wigust <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi,
Oh cool! Awesome! Thanks for pushing forward.
On lun., 13 mars 2023 at 03:33, Oleg Pykhalov <go.wigust <at> gmail.com> wrote:
> diff --git a/gnu/packages/aux-files/python/stream-layered-image.py b/gnu/packages/aux-files/python/stream-layered-image.py
> new file mode 100644
> index 0000000000..9ad2168c2d
> --- /dev/null
> +++ b/gnu/packages/aux-files/python/stream-layered-image.py
> @@ -0,0 +1,391 @@
> +"""
> +This script generates a Docker image from a set of store paths. Uses
> +Docker Image Specification v1.2 as reference [1].
Instead of Python, would it possible to implement in Guile? I mean,
does Python have something that is missing in Guile?
The facility for manipulating Tar? Something else?
Because then, if I understand correctly…
> diff --git a/guix/docker.scm b/guix/docker.scm
> index 5e6460f43f..f1adad26dc 100644
> --- a/guix/docker.scm
> +++ b/guix/docker.scm
[...]
> + (if stream-layered-image
> + (let ((input (open-pipe* OPEN_READ "python3"
> + stream-layered-image
> + "config.json")))
…it requires to drag Python for building/packing layered Docker.
Well, I have not really look yet to the Python script which does most of
the job. Do you use a similar strategy as [1]?
And I remember something in that direction by Chris but I am unable to
find back the patch. )-:
1: https://grahamc.com/blog/nix-and-layered-docker-images/
Cheers,
simon
This bug report was last modified 1 year and 124 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.