[diffoscope] Large layers in diffoscope docker image
Mattia Rizzolo
mattia at mapreri.org
Sun May 24 10:08:47 UTC 2020
On Fri, May 22, 2020 at 11:35:51AM -0500, Greg Chabala wrote:
> Just discovered diffoscope and was giving it a try, but I was surprised to
> see how large the docker image is:
>
> $ docker run --rm -t -w $(pwd) -v $(pwd):$(pwd):ro \
…
> ] 210.7MB/1.212GB
>
> I considered opening an issue for this, but I thought I'd ask about it
> first. I don't think 1GB+ image layers is a good idea. Was this necessary
> for some reason?
"Unfortunately" that's not a bug.
Diffoscope uses **many** external programs, many of which are quite
huge. They are all optional, but if they aren't installed diffoscope
would only be able to output an hex dump, which is rarely useful.
To give you a list of used tools (from `diffoscope --list-tools):
Rscript, abootimg, apksigner, apktool, bsdtar, bzip2, cbfstool,
cd-iccdump, cmp, compare, convert, db_dump, diff, docx2txt, dumppdf,
dumpxsb, enjarify, fdtdump, ffprobe, getfacl, ghc, gifbuild, gpg,
gzip, h5dump, identify, img2txt, isoinfo, javap, js-beautify,
kbxutil, lipo, llvm-bcanalyzer, llvm-dis, lsattr, lz4, msgunfmt, nm,
objcopy, objdump, ocamlobjinfo, odt2txt, oggDump, openssl, otool,
pdftotext, pedump, pgpdump, ppudump, procyon, ps2ascii, readelf,
rpm2cpio, showttf, sng, sqlite3, ssconvert, ssh-keygen, stat,
tcpdump, unsquashfs, wasm2wat, xxd, xz, zipinfo, zipnote, zstd
Hopefully this answers your query. :)
If for your usage you have no need for all those tools, you can create a
smaller docker image only containing the tools you need, but the one we
are providing is as complete as possible, and trimming it down it's
unlikely to be useful as everybody has their needs.
--
regards,
Mattia Rizzolo
GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`.
More about me: https://mapreri.org : :' :
Launchpad user: https://launchpad.net/~mapreri `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.reproducible-builds.org/pipermail/diffoscope/attachments/20200524/bf0b230d/attachment.sig>
More information about the diffoscope
mailing list