https://github.com/qurator-spk/ocrd-galley
A Dockerized test environment for OCR-D processors 🚢
https://github.com/qurator-spk/ocrd-galley
ocr ocr-d qurator
Last synced: 5 months ago
JSON representation
A Dockerized test environment for OCR-D processors 🚢
- Host: GitHub
- URL: https://github.com/qurator-spk/ocrd-galley
- Owner: qurator-spk
- License: apache-2.0
- Created: 2019-09-23T12:58:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-07T16:33:45.000Z (about 2 years ago)
- Last Synced: 2024-05-07T17:30:26.968Z (about 2 years ago)
- Topics: ocr, ocr-d, qurator
- Language: Shell
- Homepage:
- Size: 19.1 MB
- Stars: 7
- Watchers: 5
- Forks: 1
- Open Issues: 37
-
Metadata Files:
- Readme: README-DEV.md
- License: LICENSE
Awesome Lists containing this project
README
How to add a processor
----------------------
* Add model download to `build` (if necessary)
* Add a Dockerfile
* Add commands to `wrapper/qurator/ocrd_galley/cli.py`
Releasing
---------
* `git tag -m 'v' 'v'`
* `for r in origin github github-qurator-spk; do git push -d $r stable; done`
* `git tag -fm 'stable' 'stable'`
* `for r in origin github github-qurator-spk; do git push --tags $r master; done`
* This - the tags - triggers Travis builds for the mikegerber repo,
including building the Docker images and pushing them to Docker Hub.
* Make sure that qurator-spk gets tags pushed (for consistency).
* Create release on GitHub
Inclusion policy
----------------
1. Only use PyPI version where possible.
2. If that is not possible (= available) use a versioned release from GitHub
3. Otherwise, use a GitHub commit
If, for some reason, we must deviate from this, to e.g. hotfix something, an
issue should be open that reminds us to go back to a versioned release again.
Other than relying on "proper releases", this also has a second purpose: Review
releases of qurator-spk releases.
Test builds
-----------
```
GIT_COMMIT=test ./build Dockerfile-core Dockerfile-ocrd_tesserocr
DOCKER_IMAGE_TAG=test ./test-ocrd_tesserocr.sh
```
To test the GitHub Action builds:
```
# by branch
# Note that these only get tagged if *all* the builds succeeded and ran their
# tests successfully
export DOCKER_IMAGE_TAG=master
# by git commit id
# these work even if other processors did not succesfully build (or ran their
# tests successfully)
export DOCKER_IMAGE_TAG=sha-af6da489e24c9ba7828114b546610b0d70116ba4
```