Go to file
2020-06-30 15:15:06 +02:00
daemon fix ocr command 2020-06-23 15:20:05 +02:00
logs Update 2020-06-05 15:12:59 +02:00
web Fix for the previous fix 2020-06-30 15:15:06 +02:00
.env.tpl Add missing configuration to .env.tpl 2020-06-10 14:25:57 +02:00
.gitignore All configuration via .env file. (This replaces the nopaque.env file) 2020-06-09 12:46:08 +02:00
docker-compose.override.yml.tpl Fix some variables naming 2020-06-25 10:51:13 +02:00
docker-compose.yml All configuration via .env file. (This replaces the nopaque.env file) 2020-06-09 12:46:08 +02:00
README.md Update 2020-06-09 15:59:41 +02:00

nopaque

nopaque bundles various tools and services that provide humanities scholars with DH methods and thus can support their various individual research processes. Using nopaque, researchers can subject digitized sources to Optical Character Recognition (OCR). The resulting text files can then be used as a data basis for Natural Language Processing (NLP). The texts are automatically subjected to various linguistic annotations. The data processed via NLP can then be summarized in the web application as corpora and analyzed by means of an information retrieval system through complex search queries. The range of functions of the web application will be successively extended according to the needs of the researchers.

Prerequisites and requirements

  1. Install docker for your system. Following the official instructions. (LINK)
  2. Install docker-compose. Following the official instructions. (LINK)

Configuration and startup

Create Docker swarm

The generated computational workload is handled by a Docker swarm. A swarm is a group of machines that are running Docker and joined into a cluster. It consists out of two different kinds of members, manager and worker nodes. The swarm setup process is described best in the Docker documentation.

Create network storage

A shared network space is necessary so that all swarm members have access to all the data. To achieve this a samba share is used.

# Example: Create a Samba share via Docker
# More details can be found under https://hub.docker.com/r/dperson/samba/
username@hostname:~$ sudo mkdir -p /srv/nopaque/storage
username@hostname:~$ docker run \
                       --name opaque_storage \
                       -v /srv/nopaque/storage:/srv/nopaque/storage \
                       -p 445:445 \
                       dperson/samba \
                         -p \
                         -s storage.nopaque;/srv/nopaque/storage;no;no;no;nopaque \
                         -u nopaque;nopaque

# Mount the Samba share on all swarm nodes (managers and workers)
username@hostname:~$ sudo mkdir /mnt/nopaque
username@hostname:~$ sudo mount --types cifs --options gid=${USER},password=nopaque,uid=${USER},user=nopaque,vers=3.0 //<SAMBA-SERVER-IP>/storage.nopaque /mnt/nopaque

Download, configure and build nopaque

username@hostname:~$ git clone https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
username@hostname:~$ mkdir logs
username@hostname:~$ cp .env.tpl .env
# Fill out the variables within this file.
username@hostname:~$ <YOUR EDITOR> .env
username@hostname:~$ cp docker-compose.override.yml.tpl docker-compose.override.yml
# Tweak the docker-compose.override.yml to satisfy your needs.
username@hostname:~$ <YOUR EDITOR> docker-compose.override.yml

Configuration variables in detail

The variables prefixed with DOCKER should only be filled out if you want to use the Docker HTTP API. Check the Docker Documentation to see how to create certificates, configure and activate the Docker HTTP API.

The variables prefixed with GITLAB hold your login information of this GitLab instance. Either use your credentials (not recommended) or create an access token with the read_registry scope.

The value of the NOPAQUE_MAIL_SENDER variable is shown as a sender of emails generated by nopaque.

On registration the email address stored in the NOPAQUE_ADMIN variable will automatically be granted the administrator role.

The email address stored in NOPAQUE_CONTACT will be used within the contact button of the footer within the websites.

Start your instance

# For background execution add the -d flag and to scale the app, add --scale web=<NUM-INSTANCES>
username@hostname:~$ docker-compose up