Skip to content

pdurbin/dataverse-osx-playbook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dataverse Development Playbook

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)

Assumptions

  1. You have the [Java 1.8 JDK] (https://docs.oracle.com/javase/8/docs/technotes/guides/install/mac_jdk.html) installed
  2. You have git installed

Installation

  1. Clone this repository to your local drive.
  2. Install Ansible.
  3. [Install Homebrew] (http://brew.sh/). (requires sudo)
  4. Run ansible-playbook main.yml --tags "install" from the same directory as this README file.
  5. Run ansible-playbook main.yml --tags "start" to launch postgresql, solr and glassfish.
  6. Deploy your Dataverse war file.
  7. 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."

Ansible tag options

  • 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

How to start and stop components without using Ansible

All components can be controlled via launchctl

  • Glassfish: launchctl start glassfish and launchctl stop glassfish
  • Solr: launchctl start solr and launchctl stop solr
  • Postgresql: launchctl start postgresql and launchctl 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

Applications installed

  • postgresql (9.3 via Homebrew)
  • solr 4.6.0
  • glassfish 4.1
  • jq (latest via Homebrew)

About

Development mac setup for Dataverse via Ansible

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published