Skip to content

Vagrant Setup OSX

Nicolas Rannou edited this page Jun 23, 2016 · 37 revisions

Tested on OSX 10.11.6 with Vagrant 1.8.4

Vagrant >= 1.8.4 is REQUIRED (direct link)

1- Get chris-ultron-backend (optional)

mkdir -p ~/work/gitroot
cd ~/work/gitroot
git clone https://github.com/FNNDSC/ChRIS_ultron_backEnd.git chris-ultron-backend

2- Create the vagrant working directory

mkdir -p ~/work/vagrant/chris-ultron

3- Get the configuration scripts from the chris-ultron-backend source.

Adjust configuration to your setup in Vagrantfile

cd ~/work/vagrant/chris-ultron
cp -rv ~/work/gitroot/chris-ultron-backend/utils/vagrant/* .

4- Install Virtual box guest additions to share folders

vagrant plugin install vagrant-vbguest

5- Add vagrant sudo commands

sudo visudo
  Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/tee -a /etc/exports
  Cmnd_Alias VAGRANT_NFSD = /sbin/nfsd restart
  Cmnd_Alias VAGRANT_EXPORTS_REMOVE = /usr/bin/sed -E -e /*/ d -ibak /etc/exports
  %admin ALL=(root) NOPASSWD: VAGRANT_EXPORTS_ADD, VAGRANT_NFSD, VAGRANT_EXPORTS_REMOVE

6- Start vagrant

vagrant up

7- Test the setup

vagrant ssh
cd ~/chris-ultron-backend/chris_backend
python migrate test
Clone this wiki locally