Skip to content

test setup

Sandra Mierz edited this page Apr 12, 2022 · 2 revisions

Before executing the playbook on your machine, you can configure the variables and roles in the playbook and do a test run using the provided Vagrantfile to provision the playbook to a virtual machine or docker first. Below are some instructions to get a test environment on your local machine going.

Prerequisites

Perform the following steps in the terminal (Linux / macOS) or GitBash (Windows).

git clone https://github.com/vivo-community/vivo-ansible-vagrant.git
cd vivo-ansible-vagrant
vagrant up

When the installation is complete (a few minutes, depending on the download speed), VIVO & Solr can be opened in the browser:

Useful Vagrant commands

  • vagrant up -- starts vagrant environment (provisions only on the first vagrant up)
  • vagrant ssh -- connects to machine via SSH
  • vagrant provision -- forces re-provisioning of the vagrant machine
  • vagrant reload -- restarts vagrant machine, loads new Vagrantfile configuration
  • vagrant reload --provision -- restart the virtual machine and force provisioning
  • vagrant halt -- stops the vagrant machine
  • vagrant destroy -- stops and deletes all traces of the vagrant machine