invoiceninja / dockerfiles

Docker files for Invoice Ninja
https://hub.docker.com/r/invoiceninja/invoiceninja
GNU General Public License v2.0
421 stars 269 forks source link

Laravel Mix not removing previous bundles and rapidly increasing without limits #645

Closed brdns closed 3 days ago

brdns commented 4 days ago

Setup

Interface

Checklist

Describe the bug

I've noticed the size of Invoiceninja volumes on disk has increased at a steady state. Turns out there are not hundreds, but thousands of bundles sitting in the public folder !

Steps To Reproduce

Using a fully dedicated server. I've tried to run :

php artisan cache:clear
php artisan optimize:clear
php artisan view:clear

But it does not remove any of the files.

Expected Behavior

I'm guessing the previous bundles should have be deleted each time a new one is generated ? I've found a related bug (although quite dated) over at the laravel repo.

Additional context

Hello ! Thanks for the great piece of software and the support. Happily renewing my license each year.

Screenshots

See logs below, which is only a small sample of the thousands of similar files.

Logs

-rw-r--r--    1 invoicen invoicen    4.3K Oct 16 21:21 bundle.00005190.js
-rw-r--r--    1 invoicen invoicen    2.0K Nov 23 04:46 bundle.00138303.js
-rw-r--r--    1 invoicen invoicen    1.5K Oct  8 11:55 bundle.003524d7.js
-rw-r--r--    1 invoicen invoicen    1.5K Nov 23 04:46 bundle.0045656c.js
-rw-r--r--    1 invoicen invoicen    1.5K Oct 25 07:04 bundle.004c2dc8.js
-rw-r--r--    1 invoicen invoicen    1.7K Oct  8 11:55 bundle.005a0671.js
-rw-r--r--    1 invoicen invoicen    1.3K Oct  8 11:55 bundle.00674dd6.js
-rw-r--r--    1 invoicen invoicen   11.7K Oct  8 11:55 bundle.0068fcec.js
-rw-r--r--    1 invoicen invoicen    1.4K Oct  8 11:55 bundle.006d45d9.js
-rw-r--r--    1 invoicen invoicen   18.4K Nov 23 04:46 bundle.0072896b.js
-rw-r--r--    1 invoicen invoicen    1.4K Oct 21 06:40 bundle.0095c485.js
-rw-r--r--    1 invoicen invoicen    1.4K Oct  8 11:55 bundle.0097e440.js
-rw-r--r--    1 invoicen invoicen    6.5K Oct  8 11:55 bundle.00b56389.js
-rw-r--r--    1 invoicen invoicen    5.0K Oct  8 11:55 bundle.00c60136.js
-rw-r--r--    1 invoicen invoicen    1.8K Oct  8 11:55 bundle.00f70a2e.js
-rw-r--r--    1 invoicen invoicen    1.4K Oct 16 21:21 bundle.00f736ae.js
-rw-r--r--    1 invoicen invoicen    1.7K Oct 16 21:21 bundle.0106725d.js
-rw-r--r--    1 invoicen invoicen    4.5K Oct  5 06:39 bundle.01072f18.js
-rw-r--r--    1 invoicen invoicen    1.4K Oct 25 07:04 bundle.0117ff3f.js
-rw-r--r--    1 invoicen invoicen    2.2K Nov 23 04:46 bundle.013c6c0b.js
-rw-r--r--    1 invoicen invoicen    1.6K Oct 25 07:04 bundle.01516e53.js
-rw-r--r--    1 invoicen invoicen    2.2K Oct 25 07:04 bundle.016acc99.js
-rw-r--r--    1 invoicen invoicen    1.4K Oct  8 11:55 bundle.01728357.js
-rw-r--r--    1 invoicen invoicen    1.0K Oct 21 06:40 bundle.0176d7c7.js
-rw-r--r--    1 invoicen invoicen    1.6K Oct  8 11:55 bundle.017acf01.js
-rw-r--r--    1 invoicen invoicen    1.2K Oct  5 06:39 bundle.01904bfb.js
-rw-r--r--    1 invoicen invoicen    1.8K Oct  5 06:39 bundle.0197e6ee.js
-rw-r--r--    1 invoicen invoicen    2.1K Oct  8 11:55 bundle.01a538d9.js
-rw-r--r--    1 invoicen invoicen     847 Nov 23 04:46 bundle.01b59072.js
-rw-r--r--    1 invoicen invoicen    1.2K Nov 23 04:46 bundle.01e10d68.js
-rw-r--r--    1 invoicen invoicen     753 Oct  5 06:39 bundle.01facfa8.js
-rw-r--r--    1 invoicen invoicen     184 Nov 23 04:46 bundle.01ffd8a5.js
-rw-r--r--    1 invoicen invoicen     868 Oct 16 21:21 bundle.02090c3d.js
-rw-r--r--    1 invoicen invoicen    2.6K Oct  5 06:39 bundle.02095a8b.js
-rw-r--r--    1 invoicen invoicen    1.6K Oct  8 11:55 bundle.0212e0d0.js
-rw-r--r--    1 invoicen invoicen    1.9K Nov 23 04:46 bundle.02250aec.js
-rw-r--r--    1 invoicen invoicen    1.1K Oct 16 21:21 bundle.02282e8e.js
-rw-r--r--    1 invoicen invoicen    1.4K Oct  8 11:55 bundle.022c9f72.js
-rw-r--r--    1 invoicen invoicen    2.0K Oct 21 06:40 bundle.024702bf.js
-rw-r--r--    1 invoicen invoicen    1.4K Oct 21 06:40 bundle.0249387a.js
-rw-r--r--    1 invoicen invoicen    1.7K Oct 13 21:47 bundle.024af467.js
-rw-r--r--    1 invoicen invoicen    2.0K Oct 21 06:40 bundle.0260c10d.js
-rw-r--r--    1 invoicen invoicen    1.9K Oct 16 21:21 bundle.026a6d16.js
-rw-r--r--    1 invoicen invoicen     584 Oct  5 06:39 bundle.0293101d.js
-rw-r--r--    1 invoicen invoicen    2.2K Oct 16 21:21 bundle.0298f195.js
-rw-r--r--    1 invoicen invoicen    1.4K Oct  8 11:55 bundle.02a7330d.js
-rw-r--r--    1 invoicen invoicen    2.3K Oct  8 11:55 bundle.02b834e1.js
-rw-r--r--    1 invoicen invoicen    6.5K Oct  5 06:39 bundle.02f0827e.js
-rw-r--r--    1 invoicen invoicen    1.7K Oct 16 21:21 bundle.02f6c422.js
-rw-r--r--    1 invoicen invoicen    2.7K Oct 25 07:04 bundle.02f6eaa4.js
-rw-r--r--    1 invoicen invoicen     936 Oct 16 21:21 bundle.02fa2b6b.js
-rw-r--r--    1 invoicen invoicen    1.0K Oct 16 21:21 bundle.031e5c88.js
-rw-r--r--    1 invoicen invoicen    4.9K Oct 16 21:21 bundle.03393bb7.js
-rw-r--r--    1 invoicen invoicen    1.4K Oct 13 21:47 bundle.033d08f7.js
-rw-r--r--    1 invoicen invoicen    2.6K Oct 16 21:21 bundle.03587227.js
-rw-r--r--    1 invoicen invoicen     724 Nov 23 04:46 bundle.038d977b.js
-rw-r--r--    1 invoicen invoicen    1.4K Oct 16 21:21 bundle.03945f4a.js
-rw-r--r--    1 invoicen invoicen    2.1K Oct  5 06:39 bundle.03ac52b5.js
-rw-r--r--    1 invoicen invoicen     345 Nov 23 04:46 bundle.03dcb5a0.js
-rw-r--r--    1 invoicen invoicen    1.2K Oct  8 11:55 bundle.040e9458.js
-rw-r--r--    1 invoicen invoicen    9.5K Oct  8 11:55 bundle.04148637.js
-rw-r--r--    1 invoicen invoicen    1.4K Oct 25 07:04 bundle.04240807.js
-rw-r--r--    1 invoicen invoicen    6.6K Oct 25 07:04 bundle.043d4978.js
-rw-r--r--    1 invoicen invoicen    2.1K Oct 21 06:40 bundle.044ad5e0.js
-rw-r--r--    1 invoicen invoicen    5.9K Oct  8 11:55 bundle.045dd539.js
-rw-r--r--    1 invoicen invoicen    2.7K Oct 21 06:40 bundle.04624956.js
-rw-r--r--    1 invoicen invoicen     700 Oct  8 11:55 bundle9.js
-rw-r--r--    1 invoicen invoicen    3.3K Oct  8 11:55 bundle90.js
-rw-r--r--    1 invoicen invoicen    2.9K Oct  8 11:55 bundle91.js
-rw-r--r--    1 invoicen invoicen    1018 Oct  8 11:55 bundle92.js
-rw-r--r--    1 invoicen invoicen     743 Oct  8 11:55 bundle93.js
-rw-r--r--    1 invoicen invoicen    1.1K Oct  8 11:55 bundle94.js
-rw-r--r--    1 invoicen invoicen    3.8K Oct  8 11:55 bundle95.js
-rw-r--r--    1 invoicen invoicen    1.5K Oct  8 11:55 bundle96.js
-rw-r--r--    1 invoicen invoicen    2.9K Oct  8 11:55 bundle97.js
-rw-r--r--    1 invoicen invoicen    4.4K Oct  8 11:55 bundle98.js
-rw-r--r--    1 invoicen invoicen     448 Oct  8 11:55 bundle99.js
turbo124 commented 4 days ago

This isn't laravel mix, this is the docker build simply copying the js bundles into the bundle directory.

I am working on a new container and will look to have this resolved as part of that upgrade.