docs: mention how to use Docker image shell

This commit is contained in:
James R. Barlow
2019-05-26 00:20:40 -07:00
parent c14f62752b
commit 0628a89041
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -42,4 +42,4 @@ tests/output/
tests/resources/private/
tmp/
/debug_tests.py
*.traineddata
private/
+11
View File
@@ -76,6 +76,8 @@ By default the Docker image includes English, German and Simplified Chinese, the
# Add French
RUN apk add tesseract-ocr-data-fra
You can also copy training data to ``/usr/share/tessdata``.
Executing the test suite
------------------------
@@ -85,6 +87,15 @@ The OCRmyPDF test suite is installed with image. To run it:
docker run --entrypoint python3 jbarlow83/ocrmypdf-alpine setup.py test
Accessing the shell
-------------------
``bash`` is not installed in the image. To use the busybox shell in the Docker image:
.. code-block:: bash
docker run -it --entrypoint busybox jbarlow83/ocrmypdf-alpine sh
Using the OCRmyPDF web service wrapper
--------------------------------------