Multiple Base Images?

11 views
Skip to first unread message

Brandon Anderson

unread,
Jul 27, 2016, 3:12:38 AM7/27/16
to Vagrant
Hey everyone,

I have a rather odd setup and I am wondering if Vagrant has support for it. I have two base images of an operating system, one which is much smaller then the other as the second has a large software package which can not be easily installed through a script during provision time. Now in my vagrantfiles if I am building a test environment that uses this Operating System is it possible to specify two base images one which is preferred and another which is usable? The Idea being if I already have the much larger base image installed on my system then it would be sufficient to build a test environment and vagrant does not need to download a second base image taking more time to vagrant up and using more disk space. If I do not have the secondary image then it would download and install the preferred one which is much smaller. Basically saying default to this base image if none installed but any in this array are suitable if installed on the system. If this is available I would love to know, if not is there a reason to discourage this?

Thanks,

Brandon

Alvaro Miranda Aguilera

unread,
Jul 27, 2016, 6:30:00 AM7/27/16
to vagra...@googlegroups.com
Hello, I am not sure of the array part, I don't believe is possible.

What you could do, is have 2  boxes like

mybox (the full one)
mybox_minimal or something

and you can comment one or the other out from Vagrantfile.

But I am not sure to do something like what you are after.

Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/ae073071-27e7-4084-ae1f-08d09dbaaede%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages