Развертывание OCR-модуля

1. Установка Docker

  1. 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 update
  2. Install the Docker packages

    sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
  3. Verify that the installation is successful

    docker -v

Linux post-installation steps for Docker Engine

  1. Create the docker group

  2. Add your user to the docker group

  3. You can also run the following command to activate the changes to groups:

Configure Docker to start on boot

2. Развертывание OCR

  1. Clone the OCR repository

  2. Build and run


* В случае, если вы разворачиваете сервис OCR на другой машине, вам следует открыть общий доступ к папке /var/lib/datagaze/.data/data, а затем смонтировать её на машине, хостящей сервис OCR.

  1. Edit /etc/samba/smb.conf and add the following:

  2. Set up a Samba password for your user:

In case your user is dlp_admin then you should run sudo smbpasswd -a dlp_admin

  1. Mount the share from the machine hosting your OCR service:

Last updated