Skip to content
Stefan Weil edited this page Jun 16, 2021 · 19 revisions

Escriptorium for UB Mannheim

UB Mannheim tests escriptorium in its digitisation and OCR workflow.

Installation

A test installation was done on server ocr-01.

Preconditions

  • sufficient free disk space for /var/lib/containers
  • sufficient free disk space for /var/tmp (19 GiB is not enough)
  • tested with Debian bullseye and Podman instead of Docker

Podman

Running with docker-compose (root)

This did not work and was not examined closer.

sudo apt install podman
sudo systemctl start podman
python3 -m venv ~/venv
source ~/venv/bin/activate
pip install docker-compose

docker-compose up -d --build

Running with podman-compose (no root)

This seems to work, but requires a patch for podman-compose.

python3 -m venv ~/venv
source ~/venv/bin/activate

# The stable podman-compose from PyPI fails.
# See https://github.com/containers/podman-compose/issues/235.
pip install podman-compose
podman-compose up -d --build

# The suggested newer version of podman-compose fails, too.
# It works as soon as pull request #305 is applied.
pip install https://github.com/containers/podman-compose/archive/devel.tar.gz
podman-compose up -d --build
#   File "/home/stweil/venv/lib/python3.9/site-packages/podman_compose.py", line 711, in run
#     print(" ".join(cmd_ls))
# TypeError: sequence item 75: expected str instance, int found