- 
                Notifications
    
You must be signed in to change notification settings  - Fork 38
 
QuickDeploymentGuide
Quick deployment guide
To deploy DLI, please, follow instructions.
- 
Select the required Dockerfile from the
dockerfolder. - 
Update all the variables in the file, the necessary variables are marked as
ARG. - 
The following step is to build the image in accordance with
docker/README.md - 
It is required to deploy FTP-server in advance, and create a directory for storing docker images.
 - 
Create deployment configuration file according to the
src/configs/deploy_configuration_file_template.xml. - 
Execute
src/deployment/deploy.pyin accordance withsrc/deployment/README.md. - 
Copy the test datasets to the docker image, using the following command line:
docker cp <PathToData> <ContainerName>:/tmp/data. 
Deployment example
- 
Download Deep Learning Inference Benchmark. Clone repo to the
/tmpdirectory using the following commands:cd tmp git clone https://github.com/itlab-vision/dl-benchmark.git - 
It is required to deploy FTP-server and create directories. For definiteness, we will use the following names:
- 
docker_image_folderis a directory for storing docker image. - 
configsis a directory for storing configurationn files. - 
resultsis a directory for storing performance results. 
Use these parameters to connect to the FTP-server:
<IP>2.2.2.2</IP> <Login>admin</Login> <Password>admin</Password>
 - 
 - 
For definiteness, we select the OpenVINO Docker container. The Dockerfile to build this image can be found in the
/tmp/dl-benchmark/docker/OpenVINO_DLDTdirectory. Before building, you should put the current link to download the OpenVINO toolkit and link to datasets, it should be a git repository. Please, insert correct path in the following line:ARG DOWNLOAD_LINK=<Link to download Intel Distribution of OpenVINO Toolkit>ARG DATASET_DOWNLOAD_LINK=<Link to dataset project> - 
To build docker image, please, use the following command:
docker build -t OpenVINO_Image .The
buildoption searches for the Dockerfile in the current directory and builds the imageOpenVINO_Image. - 
The following step is to add docker image to the archive by the command:
docker save OpenVINO_Image > OpenVINO_Image.tar - 
After building the image, you need to fill out the configuration file for the system deployment script. The configuration file template is located in the
/tmp/dl-benchmark/src/config/deploy_configuration_file_template.xmldirectory. Fill the configuration file (information to access to the remote computer) and save it to the/tmp/dl-benchmark/src/deployment/deploy_config.xmlfile. Please, use the developed GUI application (/tmp/dl-benchmark/src/config_maker).<Computers> <Computer> <IP>4.4.4.4</IP> <Login>user</Login> <Password>user</Password> <OS>Linux</OS> <DownloadFolder>/tmp/docker_folder</DownloadFolder> <DatasetFolder>/mnt/datasets</DatasetFolder> <ModelFolder>/mnt/models</ModelFolder> </Computer> </Computers>
 - 
To run the deployment script, use the following command:
python3 deploy.py -s 2.2.2.2 -l admin -p admin \ -i /tmp/dl-benchmark/docker/OpenVINO_Image.tar \ -d docker_image_folder -n OpenVINO_DLDT \ --machine_list /tmp/dl-benchmark/src/deployment/deploy_config.xml \ --project_folder /tmp/dl-benchmark/The first three parameters
-s, -l, -pare responsible for access to the FTP-server,-iis a path to the archived Docker image,-dis a directory on the FTP-server where the Docker image will be uploaded,-nis an executable name of the Docker container,--machine_listis a configuration file which contains a list of machines on which we plan to deploy our infrastructure.After this stage, there is a Docker container at each computer.