Run this Ansible playbook locally on a mac to setup a development Dataverse instance. The idea here is to get the project running locally, no matter what it takes.
After Dataverse is installed, it doesn't require root access to run locally. However, you will need sudo for a few of the installation steps below.
This playbook provides a way of setting Dataverse up in "development mode" -- making code changes and seeing them work, or not. This is different from the "bundle everything up for deployment mode." If you are interested in using Ansible for regular deployment, see: [Ansible role for installing and maintaining Dataverse] (https://github.com/IQSS/dataverse-ansible)
- You have the [Java 1.8 JDK] (https://docs.oracle.com/javase/8/docs/technotes/guides/install/mac_jdk.html) installed
- You have git installed
- Clone this repository to your local drive.
- Install Ansible†.
- [Install Homebrew] (http://brew.sh/). (requires sudo)
- Run
ansible-playbook main.yml --tags "install"
from the same directory as this README file. - Run
ansible-playbook main.yml --tags "start"
to launch postgresql, solr and glassfish. - Deploy your Dataverse war file.
- Login as dataverseAdmin and publish the root dataverse.
† Ansible install docs say: "Readers that use virtualenv can also install Ansible under virtualenv, though we’d recommend to not worry about it and just install Ansible globally. Do not use easy_install to install ansible directly."
- Remove all components: clean
- Remove components: pg-clean, solr-clean, glassfish-clean
- Install components: pg-install, solr-install, glassfish-install
- Start components: pg-start, solr-start, glassfish-start
- Stop components: pg-stop, solr-stop, glassfish-stop
All components can be controlled via launchctl
- Glassfish:
launchctl start glassfish
andlaunchctl stop glassfish
- Solr:
launchctl start solr
andlaunchctl stop solr
- Postgresql:
launchctl start postgresql
andlaunchctl stop postgresql
Glassfish can be controlled via asadmin as well
/usr/local/glassfish4/glassfish/bin/asadmin start-domain domain1
/usr/local/glassfish4/glassfish/bin/asadmin stop-domain domain1
- postgresql (9.3 via Homebrew)
- solr 4.6.0
- glassfish 4.1
- jq (latest via Homebrew)