Post-deployment Procedures and How-to’s

After you are finished with the FindFace CIBR deployment, perform the procedures below.

In this section:

Specify Time Zone

The time zone on the FindFace CIBR server determines the time in reports, logs, and names of such FindFace CIBR artifacts as detection full frames and thumbnails, etc.

The time zone is specified in the /opt/findface-cibr/configs/findface-multi-legacy/findface-multi-legacy.py configuration file, either in the Region/Country/City or Etc/GMT+H format. The best way to do so is to copy/paste your time zone from this table on Wikipedia.

sudo vi /opt/findface-cibr/configs/findface-multi-legacy/findface-multi-legacy.py

# time zone
TIME_ZONE = 'America/Argentina/Buenos_Aires'

Restart all FindFace CIBR containers.

cd /opt/findface-cibr/

sudo docker-compose restart

License Instance

FindFace CIBR provides several licensing options. Whichever option you choose, you upload the FindFace CIBR license file via the main web interface http://<Host_IP_address>/#/license. To access the web interface, use the superuser credentials.

Important

Do not disclose the superuser (Super Administrator) credentials to others. To administer the system, create a new user with administrator privileges. Whatever the role, the Super Administrator cannot be deprived of its rights.

Refer to the Licensing section to learn about the licensing options available.

Configure Logging

By default, the FindFace CIBR processes are logged to Docker container logs, which can be accessed via the docker logs and docker service logs commands. In addition, Docker uses the json-file logging driver, which caches container logs in JSON. You can configure Docker to use another logging driver, choosing from the multiple logging mechanisms available. See Logging to learn how to do it.

Useful Docker Commands

In order to efficiently and easily administer FindFace CIBR, you must have extensive knowledge and skills with Docker. If you’re new to Docker, get started with the commands below. Then explore the Docker documentation for additional skills.

  • View all Docker containers, including the stopped ones:

    docker ps -a
    

    To get a more compact and understandable output, execute:

    docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Status}}\t{{.State}}"
    

    To extend the previous output, execute:

    docker ps --format='{{json .}}' | jq
    
  • Restart the Docker service:

    sudo systemctl restart docker
    
  • View a container log if the journald logging driver is enabled:

    journalctl CONTAINER_NAME=findface-cibr-findface-multi-legacy-1 -f
    
  • Stop a Docker container:

    sudo docker container stop <container_name>/<container_id>
    

    Stop all Docker containers:

    sudo docker container stop $(sudo docker ps -a -q)
    
  • Start a Docker container:

    sudo docker container start <container_name>/<container_id>
    

    Start all Docker containers:

    sudo docker container start $(sudo docker ps -a -q)
    
  • The FindFace CIBR docker-compose.yaml file can be viewed as such:

    cat /opt/findface-cibr/docker-compose.yaml
    
  • FindFace CIBR configuration files can be found here:

    cd /opt/findface-cibr/configs/
    

    Once you made changes to a configuration file, restart a relevant container by executing:

    sudo docker container restart <container_name>/<container_id>
    
  • Enter a running Docker container to execute a command in it:

    sudo docker container exec -it <container_name> /bin/bash
    
  • Stop and remove all FindFace CIBR containers:

    cd /opt/findface-cibr/
    sudo docker-compose down
    
  • Build, recreate, and start FindFace CIBR containers:

    cd /opt/findface-cibr/
    sudo docker-compose up -d