|
|
@ -27,13 +27,25 @@ including all dependencies in Docker.
|
|
|
|
|
|
|
|
|
|
|
|
How to use
|
|
|
|
How to use
|
|
|
|
----------
|
|
|
|
----------
|
|
|
|
It's easiest to use it as pre-built containers. To run the containers on an
|
|
|
|
**Currently, due to problems with the Travis CI, we do not provide pre-built
|
|
|
|
example workspace:
|
|
|
|
containers anymore.***
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
To build the containers yourself using Docker:
|
|
|
|
|
|
|
|
~~~
|
|
|
|
|
|
|
|
cd ~/devel/ocrd-galley/
|
|
|
|
|
|
|
|
./build
|
|
|
|
~~~
|
|
|
|
~~~
|
|
|
|
# Update to the latest stable containers
|
|
|
|
|
|
|
|
(cd ~/devel/ocrd-galley/; ./run-docker-hub-update)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
You can then install the wrappers into a Python venv:
|
|
|
|
|
|
|
|
~~~
|
|
|
|
|
|
|
|
cd ~/devel/ocrd-galley/wrapper
|
|
|
|
|
|
|
|
pip install .
|
|
|
|
|
|
|
|
~~~
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
You may then use the script `my_ocrd_workflow` to use your self-built
|
|
|
|
|
|
|
|
containers on an example workspace:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
~~~
|
|
|
|
# Download an example workspace
|
|
|
|
# Download an example workspace
|
|
|
|
cd /tmp
|
|
|
|
cd /tmp
|
|
|
|
wget https://qurator-data.de/examples/actevedef_718448162.first-page.zip
|
|
|
|
wget https://qurator-data.de/examples/actevedef_718448162.first-page.zip
|
|
|
@ -41,17 +53,8 @@ unzip actevedef_718448162.first-page.zip
|
|
|
|
|
|
|
|
|
|
|
|
# Run the workflow on it
|
|
|
|
# Run the workflow on it
|
|
|
|
cd actevedef_718448162.first-page
|
|
|
|
cd actevedef_718448162.first-page
|
|
|
|
~/devel/ocrd-galley/run-docker-hub
|
|
|
|
~/devel/ocrd-galley/my_ocrd_workflow
|
|
|
|
~~~
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Build the containers yourself
|
|
|
|
|
|
|
|
To build the containers yourself using Docker:
|
|
|
|
|
|
|
|
~~~
|
|
|
|
|
|
|
|
cd ~/devel/ocrd-galley/
|
|
|
|
|
|
|
|
./build
|
|
|
|
|
|
|
|
~~~
|
|
|
|
~~~
|
|
|
|
You may then use the script `run` to use your self-built containers, analogous to
|
|
|
|
|
|
|
|
the example above.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Viewing results
|
|
|
|
### Viewing results
|
|
|
|
You may then examine the results using
|
|
|
|
You may then examine the results using
|
|
|
|