Go to file
2024-02-14 14:24:21 +01:00
.vscode Switch back to older settings and extension .vscode setup 2023-11-20 15:26:22 +01:00
app allow .whl files for spacy nlp pipeline contributions 2024-02-14 14:24:21 +01:00
docker-compose Fix path 2023-09-26 15:08:22 +02:00
migrations Add TODO in migration scripts 2023-11-17 10:42:55 +01:00
tests Fix some bugs in tests 2021-11-15 14:10:28 +01:00
.dockerignore rename docker-entrypoint.sh to docker-nopaque-entrypoint.sh 2023-12-15 13:56:03 +01:00
.env.tpl Set default values in docker compose 2023-09-25 10:17:06 +02:00
.flaskenv Simplify Config setup and move some functions to dedicated files 2021-09-15 12:31:53 +02:00
.gitignore Restructure startup procedure 2023-09-25 10:11:11 +02:00
.gitlab-ci.yml Update CI script 2023-12-15 08:47:46 +01:00
boot.sh Restructure startup procedure 2023-09-25 10:11:11 +02:00
config.py Bump nopaque version 2024-02-14 13:42:20 +01:00
db.env.tpl minor codestyle fix 2023-11-16 17:22:07 +01:00
docker-compose.yml add missing dot 2023-09-25 10:18:19 +02:00
docker-nopaque-entrypoint.sh rename docker-entrypoint.sh to docker-nopaque-entrypoint.sh 2023-12-15 13:56:03 +01:00
Dockerfile rename docker-entrypoint.sh to docker-nopaque-entrypoint.sh 2023-12-15 13:56:03 +01:00
LICENSE Big Corpus analysis update 2021-11-16 15:23:57 +01:00
nopaque.env.tpl Restructure startup procedure 2023-09-25 10:11:11 +02:00
nopaque.py Move cli interface code in package 2023-05-11 16:33:21 +02:00
README.md Add badges to README 2023-12-05 15:00:21 +01:00
requirements.txt fix eventlet version 2024-01-23 13:31:15 +01:00

nopaque

release badge pipeline badge

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.
  2. Install docker-compose. Following the official instructions.

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 can be used.

You can create a samba share by using this Docker image.

# 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>/<SAMBA-SHARE-NAME> /mnt/nopaque

Download, configure and build nopaque

# Clone the nopaque repository
username@hostname:~$ git clone https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
# Create data directories
username@hostname:~$ mkdir data/{db,logs,mq}
username@hostname:~$ cp db.env.tpl db.env
username@hostname:~$ cp .env.tpl .env
# Fill out the variables within these files.
username@hostname:~$ <YOUR EDITOR> db.env
username@hostname:~$ <YOUR EDITOR> .env
# Create docker-compose.override.yml file
username@hostname:~$ touch docker-compose.override.yml
# Tweak the docker-compose.override.yml to satisfy your needs. (You can find examples inside the docker-compose directory)
username@hostname:~$ <YOUR EDITOR> docker-compose.override.yml
# Build docker images
username@hostname:~$ docker-compose build

Start your instance

# For background execution add the -d flag
docker-compose up
# To scale your app use the following command after starting it normally
docker-compose \
  -f docker-compose.yml \
  -f docker-compose.override.yml \
  -f docker-compose.scale.yml \
  up \
    -d \
    --no-recreate \
    --scale nopaque=<NUM_INSTANCES>