Bug#893037: Add support for diffing docker-format containers
forwarded 893037 https://salsa.debian.org/reproducible-builds/diffoscope/issues/39 thanks I've forwarded this upstream here: https://salsa.debian.org/reproducible-builds/diffoscope/issues/39 Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
Bug#893037: Add support for diffing docker-format containers
Jonathan Dowland wrote: > It would be nice if diffoscope could diff against docker containers available > on the local system. This might be useful: https://github.com/wagoodman/dive Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
Bug#893037: Add support for diffing docker-format containers
I poked a bit at how docker's overlay2 driver stores the layers and came up with this temporary hack script #!/bin/sh set -u set -e if [ $# -lt 2 ]; then echo usage: $0 before after exit 1 fi before="$1" after="$2" bfs=$(docker inspect -f '{{ .GraphDriver.Data.UpperDir }}' "$before") afs=$(docker inspect -f '{{ .GraphDriver.Data.UpperDir }}' "$after") diff -ruN "$bfs" "$afs" -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Jonathan Dowland ⢿⡄⠘⠷⠚⠋⠀ https://jmtd.net ⠈⠳⣄
Bug#893037: Add support for diffing docker-format containers
Juliana wrote: > AFAIK, docker /images/ can be exported to tarballs. Not sure how human > readable they are, but diffoscope can definitely work. (:> Indeed that would definitely work. However, the "REPL" for someone doing this would inevitably involve someone scripting the export of two images and then runnning diffoscope against them, instead of simply knowing how to carve them out of, say, Docker to begin with. This seems a little at odds with diffoscope's idea of making the whole process of diffing two things much more usable. Whilst my gut was initially against it, perhaps some kind of "magic" paths (or URI scheme) would work here. (Inspired by IRC conversation with Jon right now) Best wishes, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
Bug#893037: Add support for diffing docker-format containers
Hi Jonathan and Lamby, AFAIK, docker /images/ can be exported to tarballs. Not sure how human readable they are, but diffoscope can definitely work. (: On Thu, 15 Mar 2018 22:52:40 + Chris Lambwrote: > tags 893037 + moreinfo > thanks > > Hi Jonathan, > > Thank you very much for the idea and wishlist bug. > > > It would be nice if diffoscope could diff against docker containers available > > on the local system. > > Could you briefly elaborate on what you mean here? I have a bunch of > directories under /var/lib/docker/containers -- are you wanting to > diffoscope two of these, or...? diffoscope basically works on "paths", > you see. > > > Best wishes, > > -- > ,''`. > : :' : Chris Lamb > `. `'` la...@debian.org / chris-lamb.co.uk > `- > > -- Juliana
Bug#893037: Add support for diffing docker-format containers
tags 893037 + moreinfo thanks Hi Jonathan, Thank you very much for the idea and wishlist bug. > It would be nice if diffoscope could diff against docker containers available > on the local system. Could you briefly elaborate on what you mean here? I have a bunch of directories under /var/lib/docker/containers -- are you wanting to diffoscope two of these, or...? diffoscope basically works on "paths", you see. Best wishes, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
Bug#893037: Add support for diffing docker-format containers
Package: src:diffoscope Severity: wishlist It would be nice if diffoscope could diff against docker containers available on the local system. -- System Information: Debian Release: 9.3 APT prefers stable APT policy: (990, 'stable'), (600, 'unstable'), (500, 'oldstable') Architecture: amd64 (x86_64) Kernel: Linux 4.14.12-x86_64-linode92 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Jonathan Dowland ⢿⡄⠘⠷⠚⠋⠀ https://jmtd.net ⠈⠳⣄ Please do not CC me, I am subscribed to the list.