Does Vagrant cache base boxes from the same HTTP URL?
249 views
Skip to first unread message
Eric Riebling
unread,
Sep 1, 2015, 10:39:40 AM9/1/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Vagrant
You mean to tell me that creating a new VM from a base box on a given URL is not guaranteed to get what is on the server?
I know this might be clever, and save time, but what if you are developing that base box and want to rely on new VMs getting the latest version each time? You know, the one specified by config.vm.box when doing "vagrant up"?
I guess versioning is required, eh. Damn I wish I knew about this sooner.
The documentation and design behind the "vagrant box" commands don't make this especially clear. Cacheing of base boxes seems rather a secret to the first time user.
I guess the design assumption is that base boxes deployed on a URL will never change?
*HEADDESK*
Alvaro Miranda Aguilera
unread,
Sep 1, 2015, 4:09:08 PM9/1/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vagra...@googlegroups.com
Hello,
If you use user/box and the index of the box is on Atlas, you will use
versioning.
The versioning is something that does exist on the index.
The index basically is what tells vagrant (the client), for 0.0.1 use
box_0.0.1.box, etc
There are some blog post in the internet that show how to create the
json files to have versioning.
Can you share some information? are you or you will be using atlas?
if not, then you should implement the versioning on your side.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Vagrant
If you are using a versioned box and you don't disable the update prompt, every time the user runs 'vagrant up' they will get a prompt that a newer version of the box is available. Sometimes this is desirable if you are creating "phoenix" boxes that don't actually contain any data that needs to persist then you will be OK with updating the box, since the older version is available cached locally. If you on the other hand allow developers to create "snowflake" boxes with their own development environment, then annoying them with the update warning or having them accidently lose their progress by following the directions of a 'vagrant box update' followed by a 'vagrant destroy' and 'vagrant up' will make them even more unhappy.