For anyone still having problems with the devops setup of the radiology module + pacs.
Please read the following:
To give you some background on what is being downloaded:
-
first vagrant downloads the ubuntu 14.04 image from vagrant cloud. but this is done only once, then it will just fetch it from your filesystem. That is should be working for you.
-
then inside the VM puppet downloads following archives, in addition to all other packages like tomcat, mysql
-
oracle jdk 7: 150MB
-
jboss: 100MB
-
dcm4chee: 30MB
-
weasis: 15MB
The thing is the archives all come from different servers, and it might be a mix of your connection not being fast enough or their servers upload.
A few important vagrant commands:
If vagrant fails just do
vagrant destroy -f
this will remove the created VM and you can simply do
vagrant up
to repeat the process. No need to remove the repo and clone again!
You could try
vagrant up --provision
to force running the provision blocks in the vagrant file again after the timeout. Unfortunately this wont take of where it left of, since it would run both provision blocks.
I might figure out a way to change the second block into puppet provisioner instead of shell. We could then redo it using
vagrant up --provision-with puppet
And also get to know vagrant https://www.vagrantup.com/docs/getting-started/
If you are having issues due to timeouts, I suggest you try the setup in 2 steps:
Make sure you run the latest https://www.vagrantup.com/downloads.html
As they ironed out some bugs.
1.Bootsrap the VM and package it
vagrant destroy -f
Then comment the second provision block in the Vagrantfile which runs the puppet_deploy_apply.sh
vagrant up
This will bootstrap your VM.
Now create a vagrant package and add it to your vagrant boxes (like openmrs-rad-basebox).
See steps https://github.com/teleivo/puppet-openmrs-radiologydcm4chee#how-to-speed-up-recreating-a-fresh-vm
2.Run puppet
In the Vagranftile rename config.vm.box = "ubuntu/trusty64"
to your custom box you created before ("openmrs-rad-basebox"
or whatever you called it)
Uncomment the second provision block in the Vagrantfile which runs the puppet_deploy_apply.sh
Comment the first provision block which runs the bootstrap.sh
vagrant up
This should at least save you the time of the bootstrapping.
Hope this helps!
And if it runs without errors once, please create another box!!! To save you from going through this process again