Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Recent version of MacOS X running in VM or on bare metal and recent version of OCRKit Professional installed in /Applications/ ("OCRKit appliance")
  2. OCRKit appliance must be set up to allow remote administration using ssh from the DMS appliance's console by public key authentication (Sharing setup: Remote administration)
  3. DMS appliance needs /<storagepath>/nuxeo/data/ and /<storagepath>/nuxeo/tmp/ NFS-exports
  4. OCRKit appliance must mount these NFS-shares to /var/lib/nuxeo/data/ and /opt/nuxeo/server/tmp/ respectively and make suer these mounts will be auto mounted (kept alive)
  5. In DMS appliance, place the below script "ocrKit" in /<storagepath>/nuxeo/scripts/ and make executable (chmod +x)
  6. In DMS appliance, place the DMS appliance's public key files "id_rsa" and "id_rsa.pub" in /<storagepath>/nuxeo/ssh/ 
  7. Set key "ocr.engine.name" in PAT_DMS_SETTINGS table of Patricia db to "ocrkitmac"

 

 

 

 

...

  1. Add below change commands to the "commands.conf" file of auto-deploy client specific repository (also found in ~/deploy/config/)
  2. Start re-deploy of DMS using ~/deploy/deploy_script/deploy.sh command as outlined here: Auto-deploy script

Scripts:

  • Make sure you replace <<OCRKit.appliance.name>> with proper FQND or IP address:

 

Code Block
languagebash
#!/bin/bash
echo "variables $1 $2"
ssh admin@<<OCRKit.appliance.name>> "/Applications/OCRKit\ Pro.app/Contents/MacOS/OCRKit\ Pro --format text --output $1 $2"

 

  • 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 "/var/data/nuxeo/ssh" "/home/nuxeo/.ssh"
  add_volume "/var/data/nuxeo/scripts/ocrKit" "/usr/bin/ocrKit"

Questions:

  • known_hosts file in /<storagepath>/nuxeo/ssh/  ??
  • Are paths in 4 hard coded paths in nuxeo container ?
  • Is path /usr/bin/ocrKit hard coded nuxeo container ?