Skip to content

Latest commit

 

History

History
90 lines (61 loc) · 2.8 KB

INSTALL.rst

File metadata and controls

90 lines (61 loc) · 2.8 KB

Installation

DARIAH-repository docker installation (local installation) -------------------

Requirements

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.

Docker installation

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: HAProxy
  • 81: Nginx
  • 443: HAProxy
  • 444: Nginx
  • 5000: dariah-repository
  • 5432: PostgreSQL
  • 5601: Kibana
  • 5672: RabbitMQ
  • 6379: Redis
  • 8080: HAProxy stats
  • 8125: StatsD (UDP)
  • 9200: Elasticsearch
  • 9300: Elasticsearch
  • 15672: RabbitMQ management console