-
-
Notifications
You must be signed in to change notification settings - Fork 5
Manually update vagrant box
If re-creating (Development-environment#re-create-guest) the vagrant guest using vagrant box update on your host will not work due to proxy or other network trouble, the following may be successful to update the vagrant box.
Use curl to download the box on your host. This command can be re-run to resume a download that has failed partway through.
curl --continue-at - --location --fail --show-error \
--output marksvc-sfdev-1.3.0.box \
https://vagrantcloud.com/marksvc/boxes/sfdev/versions/1.3.0/providers/virtualbox/amd64/vagrant.boxVerify that the download came thru uncorrupted by doing one of the following:
In Windows, check that this command's output contains e050c3087a886d5f842b61935566d94dc825ce4c92dfffbf9dffff3993846c06:
certutil -hashfile marksvc-sfdev-1.2.0.box SHA256Or in Linux,
sha256sum --check <<< "e050c3087a886d5f842b61935566d94dc825ce4c92dfffbf9dffff3993846c06 marksvc-sfdev-1.3.0.box"Make a marksvc-sfdev-1.3.0.box.json file with content:
{
"name": "marksvc/sfdev",
"versions": [{
"version": "1.3.0",
"providers": [{
"name": "virtualbox",
"url": "marksvc-sfdev-1.3.0.box",
"checksum": "e050c3087a886d5f842b61935566d94dc825ce4c92dfffbf9dffff3993846c06",
"checksum_type": "sha256"
}]
}]
}Run
vagrant box add marksvc/sfdev marksvc-sfdev-1.3.0.box.jsonVerify by running the following, replacing ~/code/web-xforge with the path to your web-xforge repository. It should say it is the latest version, 1.3.0.
cd ~/code/web-xforge/deploy/vagrant/sfdev
vagrant box update