metanorma / metanorma-docker

Docker container for running the Metanorma toolchain
https://www.metanorma.com
5 stars 3 forks source link

1.10.1 images size increased #188

Closed CAMOBAP closed 1 month ago

CAMOBAP commented 1 month ago

investigation...

CAMOBAP commented 1 month ago

apt-get install take almost twie more than previously

459MB in 1.10.0 vs 864MB in 1.10.1

To be updated

CAMOBAP commented 1 month ago

Extra size added by xmi gem

> docker run --rm metanorma/metanorma:1.10.1 du -sh /usr/local/bundle/gems/xmi-0.3.0
384M    /usr/local/bundle/gems/xmi-0.3.0
...
> docker run --rm metanorma/metanorma:1.10.0 du -sh /usr/local/bundle/gems/xmi-0.3.0
du: cannot access '/usr/local/bundle/gems/xmi-0.3.0': No such file or directory

Analyzed by docker-diff from brew install moul/moul/docker-diff

I'm not sure that we can do something about it so just closing this one

@ronaldtse FYI

ronaldtse commented 1 month ago

Oh no that size increase is crazy. The gem does not actually require this much space at all. It must be packaging things it shouldn't.

Can you please file an issue at the XMI gem? Thanks.

Ping @kwkwan please fix this ASAP. Thanks.

CAMOBAP commented 1 month ago

@ronaldtse @kwkwan this is all references i.e. /usr/local/bundle/gems/xmi-0.3.0/references

CAMOBAP commented 1 month ago

Reported https://github.com/lutaml/xmi/issues/30