Platform launch#
When the script is run, a default account of type user will be created with login user@mail.com
and password password
. See detailed information about accounts in the "Accounts, tokens and authorization types" section of the administrator manual.
Enable Liveness V1#
The Liveness V1 service is disabled by default.
You do not need to launch any additional services for Liveness V2.
To enable the service in services configurations before LP launching, open the "/var/lib/luna/current/extras/conf/platform_settings.json" file and set the "liveness" parameter to "true". You should edit the parameter in the "settings" section for the "ADDITIONAL_SERVICES_USAGE" parameter.
"liveness": true
You should launch the Liveness V1 service using Compose.
The service should be launched before the other services.
cd /var/lib/luna/current/example-docker
docker-compose up -d idface-liveness
Configure User Interface 4 container#
You should configure the BP4_EXTERNAL_IP:
field in the "/var/lib/luna/current/example-docker/.env" file before launching the Compose script if you are going to use the User Interface 4 service with the Backport 4 service.
BP4_EXTERNAL_IP=<Backport_4_external_IP>
You should specify the external IP of the server with Backport 4. Otherwise, the User Interface 4 will be unable to send requests to the Backport 4 service.
As a default account for working in User Interface 4, an automatically created account of the user type will be used. In the "/var/lib/luna/current/example-docker/.env" file, the BASIC_AUTH
field is already set to dXNlckBtYWlsLmNvbTpwYXNzd29yZA==
(login:password in Base64 format).
Launch services#
Go to the Docker Compose folder:
cd /var/lib/luna/current/example-docker
Make sure that LP containers are not launched before executing the script. An error will occur if you try to run a container with the same name as an existing container. If one or several LP containers are launched, you should stop them using the
docker container rm -f <container_name>
command. To stop all the containers, usedocker container rm -f $(docker container ls -aq)
.
Launch Docker Compose:
You must be logged in the VisionLabs registry (see section "Login to registry")
./start_platform.sh
Deploying containers takes some time. You have to wait until all the services are running before working with Luna Platform.
Check the state of launched Docker containers.
docker ps
Example of CURL-request to the "create account" resource:
curl --location --request POST 'http://127.0.0.1:5000/6/accounts' \
--header 'Content-Type: application/json' \
--data '{
"login": "user@mail.com",
"password": "password",
"account_type": "user",
"description": "description"
}'
It is necessary to replace the authentication data from the example with your own.
To work with tokens, you must have an account.
Run Handlers utilizing GPU#
The Handlers service does not utilize GPU by default. If you are going to use the GPU, then you should enable its use for the Handlers service in the Configurator service.
See the device_class
parameter of the following settings:
- LUNA_HANDLERS_WARP_ESTIMATOR_RUNTIME_SETTINGS
- LUNA_HANDLERS_HUMAN_EXTRACTOR_RUNTIME_SETTINGS
- LUNA_HANDLERS_HUMAN_DETECTOR_RUNTIME_SETTINGS
- LUNA_HANDLERS_EXTRACTOR_RUNTIME_SETTINGS
- LUNA_HANDLERS_DETECTOR_RUNTIME_SETTINGS
See section "Calculations using GPU" for additional requirements for GPU utilization.