Vagrant for Sufia and Fedora 4 Development
Components installed:
- Solr
- Fedora 4
- MariaDB (No users are created yet, and install is not secured)
- Redis
- ImageMagick
- Ruby
- Fuseki
- Fits
- Sufia
Uses port forwarding:
http://localhost:38000 -> Port 80
http://localhost:33000 -> Port 3000 (Rails Server)
http://localhost:38080/solr -> Solr
http://localhost:38080/fcrepo/rest -> Fedora 4 REST API
http://localhost:33030 -> Fuseki
Fits is installed under /opt/fits
. Solr and Fuseki should index the Fedora 4 repo automatically.
TODO:
- Make vagrant provisioner install and start sufia
- Create separate solr cores for dev, test, and production and update solr.yml.
Borrowed from https://github.com/projecthydra-labs/sufia-vagrant
First install all of the dependencies (Git, VirtualBox, Vagrant), then vagrant up
your new development environment.
To grab a copy of sufia-ready-vagrant, which is hosted on github.com, you'll need git, the distributed version control system. Here are instructions on installing git.
You will also need VirtualBox installed to run the virtual machine that runs sufia-ready-vagrant. Download packages and installation instructions can be found at https://www.virtualbox.org/wiki/Downloads.
If you don't have Vagrant installed, here's how to remedy that:
- Windows: follow the installation instructions on Vagrant's downloads page.
- Mac: With homebrew
brew tap phinze/cask; brew install brew-cask; brew cask install vagrant
or follow the installation instructions on Vagrant's downloads page. - Linux: use your favorite package manager to install packages for vagrant.
$ git clone https://github.com/cudevmaxwell/sufia-ready-vagrant.git
$ cd sufia-ready-vagrant
$ vagrant up
On Windows, you can also use github for windows and run vagrant from within the git shell.
vagrant up
will take some time to complete the first time you launch it -- no, really, maybe grab a cup of coffee and wait for this to complete!
$ vagrant up --provider=aws
You need to have your AWS credentials and configuration information exported to your environment for this to work.
export AWS_ACCESS_KEY=“XXXXXXXXXXXXXXXXXX"
export AWS_SECRET_KEY=“XXXXXXXXXXXXXXXXXXX”
export AWS_KEYPAIR_NAME=“XXXXXXXXXXXXXXXXXX"
export AWS_PRIVATE_KEY_PATH=“XXXXXXXXXXXXXXX”
export SUFIA_AWS_SECURITY_GROUPS=“XXXXXXXXXXXXXXXXXX"
After vagrant up
completes, ssh into the vagrant machine and run /vagrant/sufia/setup.sh
and /vagrant/sufia/start.sh
to get sufia installed and started on port 3000.