Configuration files for provisioning a virtual machine with DSpace using Vagrant and Chef Solo.
Install VirtualBox. Add VirtualBox to path e.g.:
export PATH=$PATH:/Applications/VirtualBox.app/Contents/MacOS/
Install Vagrant from package as recommended by Vagrant docs. Alternatively uncomment Vagrant gem dependency in Gemfile before running bundle install.
Download/clone DSpace VM:
$ git clone git@github.com:lwalley/dspacevm.git
$ cd dspacevm/
Install bundler gem:
$ gem install bundler
Optionally configure bundler to pass options to chef install:
$ bundle config build.chef --no-ri --no-rdoc
Install gems:
$ bundle install
Download cookbooks with librarian-chef:
$ librarian-chef install
Optionally override cookbook attributes in Vagrantfile.
Create and provision virtual machine with Vagrant:
$ vagrant up
SSH to virtual machine:
$ vagrant ssh
Create dspace adminstrator for logging into the UI:
vagrant@lucid64:~$ sudo /dspace/bin/dspace create-administrator