Comments (5)
Done: #29. Thanks @nottrobin!
from dotrun.
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.
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.
@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.
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)
- Add host mode option
- Cypress run fails
- Docker error about name conflict HOT 3
- Display available commands
- Error about port conflict (when docker container is already running in background) HOT 1
- specs.canonical.com gunicorn.error on M1 HOT 1
- Dockerpy is not pulling the latest image
- Error when setting up dotrun on Mac HOT 3
- Chromium error when using dotrun on ubuntu.com HOT 7
- Change DOTRUN_DOCKER_COMPOSE_ACTIONS so it can be set in .env
- docker-compose doesn't run when running `dotrun -C {directory}`
- utf-8-validate: Command failed (Apple M1) HOT 5
- M1 Mac - multipass error when installing via script HOT 11
- Error with the package django-openid-auth on M1 HOT 12
- The snap is huge HOT 2
- Add update checks
- Can't run multiple instances of the same project with dotrun v2 HOT 2
- Expose all the container ports HOT 1
- Error when passing specific params to `dotrun exec` command
- Ignored commands exit status
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotrun.