Giter VIP home page Giter VIP logo

Comments (5)

huwshimi avatar huwshimi commented on June 24, 2024 1

Done: #29. Thanks @nottrobin!

from dotrun.

huwshimi avatar huwshimi commented on June 24, 2024

After doing some investigation I've removed some old snap versions and also run dotrun exec yarn cache clean. This has reduced the snap to:
451M /snap/dotrun
1.2G /home/multipass/snap/dotrun

Edit:
After a day of working this is now:
2.2G /home/multipass/snap/dotrun

from dotrun.

nottrobin avatar nottrobin commented on June 24, 2024

I'm confused as to why the /home/multipass/snap/dotrun folder itself would grow in size, since snaps are immutable. The snap is largish, as in it includes a lot of dependencies with it. Overall, though, this should save a lot of disk space over the old ./run solution where we were keeping many copies of large docker images for every project.

The project folders themselves will grow a lot based on yarn and python dependencies. This is unavoidable.

If you discover anything more about any ways you think dotrun is being inefficient with space, please let me know. But I think I'll close this for now as there doesn't seem to be a clear action.

from dotrun.

huwshimi avatar huwshimi commented on June 24, 2024

@nottrobin does the snap keep its own caches for yarn? It seems like it does by me running dotrun exec yarn cache clean and that snap dir reducing in size. I wonder if we need to be able to clean up python/js caches as these will only grow in size as deps update and the old versions live in the cache.

Now that I know to do it I will run dotrun exec yarn cache clean periodically, but it'd be nice to have some kind of dotrun clean-cache or something that cleaned up all the different caches it had.

from dotrun.

nottrobin avatar nottrobin commented on June 24, 2024

Ah right, yeah that's probably what's going on. I realised /home/multipass/snap/dotrun will actually only contain the snap user storage directories, not the snap itself, so that makes sense.

I think in general the existence of that cache is a good thing as it will significantly speed up yarn installs. For most people I imagine they'd happily sacrifice a couple of GB for faster yarn installs. But certainly it makes sense to help people clean it up if needed.

Yeah dotrun clean-cache seems like a reasonable feature request. Do you think you could file that as a separate issue to keep things tidier? Or maybe we could call it purge? Or prune like Docker?

from dotrun.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.