There are two parts to get phylolink installed on your system. First, you need to install the dependencies. Second, running phylolink locally, for example, on intellij.
Installing dependencies on local virtual machine
$ cd ~
$ git clone https://github.com/AtlasOfLivingAustralia/ala-install.git
$ cd ~/ala-install
$ cd vagrant/ubuntu-trusty
$ vagrant up
$ cd ../../ansible
$ ansible-playbook phylolink.yml -i inventories/vagrant/phylolink-vagrant --sudo --private-key ~/.vagrant.d/insecure_private_key -u vagrant
Create an entry into hosts file.
10.1.1.2 phylolink.vagrant1.ala.org.au
Save the config file as phylolink-config.properties
in directory /data/phylolink/config/
.
Install postgres on your local machine. create role with password and database according to the information given in phylolink-config.properties
.
These instructions are for Mac OSX Yosemite. Adapt them as necessary for your environment.
brew install postgresql
)sudo chmod 700 /data/postgres
)initdb -D /data/postgres
postgres -D /data/postgres
createuser phylo -P
(-P prompts for a password: if not specified, the user will not have a password)createdb phylolink
Ansible scripts are in the ala-install repository
ansible-playbook phylolink.yml -i ala-install/ansible/inventories/vagrant/phylolink-vagrant --sudo --private-key ~/.vagrant.d/insecure_private_key -u vagrant
$ cd ala-install/ansible
$ ansible-playbook phylolink.yml -i ../../ansible-inventories/phylolink-prod -s --ask-sudo-pass