Installation Guide
The following installation guide is for Debian-based and Ubuntu-based Linux system with GPU enabled.
sudo apt-get update && sudo apt-get install curl nano htop unzip -y
We will enter the super user mode, command to turn off the swap memory, and exit the super user mode. Finally we launch
htop
command to confirm that that the swap memory is already turned off.sudo su -
swapoff -a
exit
htop
Swp = 0K/0K at the last line of this image means the swap memory is successfully turned off.
Control-c
to go back to terminalIf you already have docker engine installed, you can skip this step.
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
You can run the following command to check if the docker is successfully installed.
sudo docker run hello-world
If you already have docker compose installed, you can skip this step.
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
To install Nvidia GPU driver use the command below.
sudo ubuntu-drivers devices
sudo ubuntu-drivers autoinstall
sudo shutdown -r now
You can install
nvidia-docker
with the following command.distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit nvidia-docker2
sudo systemctl restart docker
Edit the
daemon.json
file to support nvidia-docker
.sudo nano /etc/docker/daemon.json
Add the following text below. If there are existing text replace it with the provided text below.
{
"runtimes": {
"nvidia": {
"path": "nvidia-container-runtime",
"runtimeArgs": []
}
},
"default-runtime": "nvidia"
}
Press
CTRL+x
to exit editor, and then y
to save the file.Then run the following line.
sudo systemctl restart docker
docker run --rm nvidia/cuda:9.0-base nvidia-smi
In the printed out table there must be the name of the graphic card installed in the server

Example Results from nvidia-smi
You can purchase our on-premise license by contacting us at [email protected] or call +6686-322-5858.
Once you purchase our On-Premise license, You will received the Thai National ID Card Docker image from us in the zip file. It contains two files.
unzip thai_id_ocr_op_v3.4.3.zip
Archive: thai_id_ocr_op_v3.4.3.zip
inflating: docker-compose.yml
inflating: thai_id_ocr_op_v3.4.3.docker_image.tar
Enter the extracted directory. You can easily install it by typing the following command
docker load -i thai_id_ocr_op_v3.4.3.docker_image.tar
nano docker-compose.yml
mkdir config
Open website to start using the service at
http://localhost:8000
Last modified 1yr ago