This repository is a set of code that can be used to setup the various WormBase environments.
The main provisioning tool that is used in the repostitory is Ansible.
First you will need to install docker and other dependencies on your host machine.
Follow instructions for mounting volumes.
eg. `sudo mkfs -t xfs /dev/xvdf; sudo mount /dev/xvdf /datastore;`
sudo ~/datomic/bin/transactor \
~/datomic_configs/free-transactor.properties
ansible-playbook -i inventory install.yml
ansible-playbook -i inventory site.yml
When you run docker images
you should now see the image
"wormbase-datomic" listed as a docker image.
foreach acefile (ls /datastore/acedb/raw-data/WS250/*.ace
)
tace <<quit
parse $acefile
quit
end
docker ps -a
docker inspect (look for NetworkSettings -> IPAddress )
docker exec -it <container-id | container-name> bash
This database could be used in stead of the free storage protocol with Datomic.
Data is stored in /var/log/postresql/data.
psql -U postgres -h <postgres-container-ip-addr>
ansible-playbook -i inventory postgresql.yml;
Datomic will already be running you will be able to connect with it either through port 4334 or through ssh
docker exec -it wombase-datatomic /bin/bash
docker run -d -P \
--name wormbase-datomic-api \
--link wormbase-datomic:wormbase-datomic \
wormbase-datomic-api \
/bin/bash
##Running lein
I am following the docker links to make a connection to the datomic database. To do the host needs to be modified to
(def uri "datomic:free://WORMBASE_DATOMIC_PORT_4224_TCP/wb250-imp1
In the script on the following page:
https://github.com/WormBase/db/wiki/Timestamp-Importer