...
Code Block | ||
---|---|---|
| ||
#!/bin/bash echo "variables $1 $2" ssh root@192.168.72.140 "docker run -v /var/lib/nuxeo/data/:/var/lib/nuxeo/data -v /opt/nuxeo/server/tmp/:/opt/nuxeo/server/tmp/ --rm jitesoftpracticeinsight/tesseract-ocrdms_tesseract:1.0 $1 $2" |
$1 is the path and filename of the output file, $2 is the path and filename of the input file that are handed over when the DMS calls the tesseract script. The command in tesseract script must be such that the OCR engine reads the input file (pointed to by $2) and writes to the output file (pointed to by $2).
Make sure you replace <<adminuser>> with correct user name of an administrative user in OCR appliance, and <<ocr.appliance.name>> with proper FQND or IP address.
- Make sure in "commands.conf" file of auto-deploy client specific repository, the following commands are added to the nuxeo container definition (under section
"elif [ ${1} = "NUXEO" ] then"
) so as to be added the container run command.:
Code Block |
---|
add_volume "/<storage_path>/nuxeo/ssh" "/home/nuxeo/.ssh" add_volume "/<storage_path>/nuxeo/scripts/tesseract" "/usr/local/bin/tesseract" |