I did a *time* *vagrant up --no-provision*, and got 34 seconds.

Then when I do a *time vagrant provision* where Internet has about 50 gb/s 
down, it takes about 20 minutes each time.  I tried this from two different 
sides, where I have even faster Internet access, and it is taking an 
abnormally long time.

I would like to measure how long it takes to just install the docker 
component.  I think my server component does not take much time to build 
the docker and run it, as it is just a hello world express application.  

On Friday, March 18, 2016 at 2:05:18 PM UTC-7, Alvaro Miranda Aguilera 
wrote:
>
> Hello,
>
> You actually measure each stage to find where the system goes slow, and 
> one potential fix is create your own base box that include all the required 
> bits.
>
> mini:t2 kikitux$ time vagrant up --no-provision --provider virtualbox
>
> Bringing machine 'default' up with 'virtualbox' provider...
>
> *==> default: Box 'ubuntu/trusty64' could not be found. Attempting to find 
> and install...* 
>
> real 5m53.961s
>
> 6 minutes to download and create a VM, but no provisioning.
>
>
> Then you can do  time vagrant reload --provision  to test how long it will 
> take run the provision step
>
>
> So most of the time is gone installing docker on the VM.
>
>
> If you use a base box that includes docker, it will be faster.
>
>
> Alvaro.
>
>
>
> On Sat, Mar 19, 2016 at 7:06 AM, Joaquin Menchaca <[email protected] 
> <javascript:>> wrote:
>
>> I was wondering if this was a bug or if this is normal?
>>
>> Right now, it's taking about 21 minutes to provision a small hello world 
>> docker image.  This is not including the 34 seconds it takes to bring up 
>> the initial system.  
>>
>> The initial download takes most of the time, then afterwards, it works 
>> fairly quickly.   
>>
>> Vagrant.configure(2) do |config|
>>
>>   config.vm.box = "ubuntu/trusty64"
>>
>>   config.vm.network "forwarded_port", guest: 8080, host: 8080
>>
>>
>>   config.vm.provision "docker" do |docker|
>>
>>     docker.build_image "/vagrant", args: "-t web"
>>
>>     docker.run "web" , args: "-p 8080:8080"
>>
>>   end
>>
>> end
>>
>> -- 
>> 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 [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/vagrant-up/c1b3f463-ab4c-4a4c-a033-8982f11d649c%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/vagrant-up/c1b3f463-ab4c-4a4c-a033-8982f11d649c%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/76fb57e2-7861-4af5-a1a8-278c6edbfb3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to