DARIAH-repository docker installation (local installation) -------------------
DARIAH-repository is a forked github project from ZENODO <https://github.com/zenodo/zenodo/> and depends on PostgreSQL, Elasticsearch 2.x, Redis and RabbitMQ.
If you are only interested in running DARIAH-repository locally, follow the Docker installation guide below.
For this guide you will need to install docker along with the docker-compose tool.
Docker installation is not necessary, although highly recommended.
The easiest way to get started with DARIAH repository is using the pre-defined docker images (https://hub.docker.com/r/indigodatacloudapps/dariah-repository/) and provided docker-compose
file. The installation requires only two steps, first checkout the source code and then boot them up using Docker Compose: We presume that all installation is done in the home directory (~
in Linux based systems).
$ cd ~
$ git clone https://github.com/indigo-dc/dariah-repository.git
$ cd ~/dariah-repository/
$ git checkout master
$ docker-compose up
The initialization script creates the database tables, search indexes and some data fixtures are run automatically during the start of the repository, together with loading some demo records. Check starting script file for more info:
$ ~/dariah-repository/scripts/start.sh
DARIAH repository initialization scripts:
$ ~/dariah-repository/scripts/init.sh
$ ~/dariah-repository/scripts/index.sh
Loading demo records:
$ ~/dariah-repository/scripts/loadDemo.sh
Now visit the following URL in your browser:
https://<docker ip>
Note
If you're running docker on Linux or newer Mac OSX systems, the <docker ip>
is usually the localhost. For older Mac OSX and Windows systems running docker through docker-machine
, you can find the IP with
$ docker-machine ip <machine-name>
You can use the following web interface to inspect Elasticsearch and RabbitMQ:
- Elasticsearch: http://<docker ip>:9200/_plugin/hq/
- RabbitMQ: http://<docker ip>:15672/ (guest/guest)
- HAProxy: http://<docker ip>:8080/ (guest/guest)
Also the following ports are exposed on the Docker host:
80
: HAProxy81
: Nginx443
: HAProxy444
: Nginx5000
: dariah-repository5432
: PostgreSQL5601
: Kibana5672
: RabbitMQ6379
: Redis8080
: HAProxy stats8125
: StatsD (UDP)9200
: Elasticsearch9300
: Elasticsearch15672
: RabbitMQ management console