Развертывание OCR-модуля
1. Установка Docker
Set up Docker's apt repository
# Add Docker's official GPG key: sudo apt-get update sudo apt-get install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc # Add the repository to Apt sources: echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get updateInstall the Docker packages
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-pluginVerify that the installation is successful
docker -v
Linux post-installation steps for Docker Engine
Create the docker group
Add your user to the docker group
You can also run the following command to activate the changes to groups:
Configure Docker to start on boot
2. Развертывание OCR
Clone the OCR repository
Build and run
* В случае, если вы разворачиваете сервис OCR на другой машине, вам следует открыть общий доступ к папке /var/lib/datagaze/.data/data, а затем смонтировать её на машине, хостящей сервис OCR.
Edit /etc/samba/smb.conf and add the following:
Set up a Samba password for your user:
In case your user is
dlp_adminthen you should runsudo smbpasswd -a dlp_admin
Mount the share from the machine hosting your OCR service:
Last updated