PrizmDoc Viewer v13.25 Release - Updated
PrizmDoc OCR API / OCR API Developer Guide / How to Run the Worker
In This Topic
    How to Run the Worker
    In This Topic

    Introduction

    This section describes how to run the OCR Reader Worker as a Docker container.

    Steps to Run OCR Reader Worker

    1. Create a Docker network so the containers can communicate:

       docker network create prizmdoc
      
      
    2. Run MySQL Server:

       docker run --name=mysql --detach --rm --network prizmdoc --publish 3306:3306 --env MYSQL_LOG_CONSOLE="TRUE" --env MYSQL_DATABASE=ProcessManager --env MYSQL_ROOT_PASSWORD=root mysql:5.7 --max_allowed_packet=100M --general_log=1 --general_log_file=/var/lib/mysql/mysql.log --innodb_use_native_aio=0
      
      
    3. Run PrizmDoc Server (NOTE: PrizmDoc Server version must be 13.25 or later):

       docker run --rm --env ACCEPT_EULA=YES --network prizmdoc --publish 18681:18681 --name prizmdoc-server accusoft/prizmdoc-server
      
      

      Wait until you see the following output in the console:

       [info] Starting Product Runner...
       [info] product-runner has been started correctly.
       [info] Starting PCCIS Watchdog process...
       [info] PCCIS Watchdog has been started correctly.
      
      
    4. Run Process Manager:

       docker run --name=process-manager --detach --rm --network prizmdoc --publish 3000:3000 --publish 3001:3001 --env LOG_LEVEL=info --env "DATABASE_CONNECTION_STRING=mysql://root:root@mysql:3306/ProcessManager" --env "PRIZMDOC_SERVER_URL=http://prizmdoc-server:18681" --env ACCEPT_EULA=YES accusoft/process-manager
      
      
    5. Run OCR Reader Worker:

       docker run --rm --env ACCEPT_EULA=YES --network prizmdoc --publish 4000:4000 --name ocr-worker --env "PROCESS_MANAGER_INTERNAL_URL=http://process-manager:3001" --env "WORKFILE_SERVICE_URL=http://prizmdoc-server:18681/PCCIS/V1/WorkFile" accusoft/ocr-readers-worker
      
      
    6. OCR Reader Worker is ready to accept processes from the Process Manager.

    Stopping

    To stop the running Docker containers, use the following commands in the terminal:

        docker stop ocr-worker
        docker stop process-manager
        docker stop prizmdoc-server
        docker stop mysql