How to install standalone OCR docker container in airgapped environment?
As per documentation, standalone OCR docker container can only be installed in airgapped environment. Follow steps below to install OCR in airgapped environment.
GPU Machine Install (Optional)
- Download the script file on computer with internet access
- curl https://raw.githubusercontent.com/UiPath/Infrastructure/master/ML/du_prereq_installer.sh -o du_prereq_installer.sh
- Copy the file to the installation machine and execute the script to configure GPU as per link below
- https://docs.uipath.com/document-understanding/automation-suite/2021.10/user-guide/ocr-services1#(optional)-gpu-machine-install
OCR Install in airgapped environment
On machine with internet access
- Login to UiPath Docker registry using credentials provided by sales team after license purchase
- docker login aiflprodweacr.azurecr.io -u <username> -p <password>
- Pull the image from uipath registry
- docker pull aiflprodweacr.azurecr.io/uipath-ocr:latest
- Save the image to tar file
- docker save aiflprodweacr.azurecr.io/uipath-ocr:latest > UiPathOCRLatest.tar
- Now copy this tar file to machine where OCR is being installed
On installation machine
- Load the tar file
- docker load --input /pathToFile/UiPathOCRLatest.tar
- Verify if the image is loaded successfully by checking it in output of below command
- docker images
- Run the docker with "frontdoor.enabled=false" at end of the command to disable license check
- For CPU
- docker run -d -p 5000:80 aiflprodweacr.azurecr.io/uipath-ocr:latest LicenseAgreement=accept frontdoor.enabled=false
- For GPU
- docker run -d -p 5000:80 --gpus all aiflprodweacr.azurecr.io/uipath-ocr:latest LicenseAgreement=accept frontdoor.enabled=false
- Once the container is running, use the OCR on https:<IP Address/hostname>:5000.