jedi4ever / veewee

Easing the building of vagrant boxes
MIT License
4.29k stars 779 forks source link

why the size of custom build box is larger than public respository box ? #1007

Closed adrianmak closed 9 years ago

adrianmak commented 10 years ago

i used default template to build a ubuntu 14.04 box the final vagrant box is size of 5XX MB

I found that most of the public vagrant respository box (minimal base image) only 38X MB size

mpapis commented 10 years ago

there might be multiple things to influence the size, most important:

  1. installing system updates - it takes place and increases disk fragmentation
  2. not sufficient disk zeroing here: https://github.com/jedi4ever/veewee/blob/master/templates/ubuntu-14.04-server-amd64/cleanup.sh#L3-L4

try unpacking both boxes with tar -xf path/to.box and compare file sizes inside

mpapis commented 9 years ago

there was no response in over two weeks, closing the ticket, please let me know if you have still questions and I will reopen