In this article:

Installing Docker Components

Installing the docker-compose Utility

Deployment and Preparation of Astra Linux-Based Server

Foresight Mobile Platform works in the Docker containerization environment. Set up and deploy the Docker subsystem infrastructure on mobile platform server and on Relay server, if it is used.

To deploy a server:

  1. Prepare virtualization environment if a virtual server is used. Foresight Mobile Platform supports Oracle VirtualBox, VMware Workstation and Microsoft Hyper-V.

  2. Make sure that the operating system meets the system requirements.

  3. Install Docker components.

  4. Install the docker-compose utility to simultaneously manage several containers included in the application.

After executing the operation the server is prepared for installing mobile platform server.

Installing Docker Components

To install Docker components:

  1. Log in to the server console locally or remotely using SSH client.

  2. Delete earlier versions of Docker if they do not correspond to the required version:

% sudo apt remove docker.io docker-compose

The specified components are possibly absent in the system.

  1. Update the package index:

% sudo apt update

  1. Install Docker packages:

% sudo apt install docker.io

  1. Add the current account to the Docker user group to start containers without requesting root privileges:

% sudo usermod -aG docker $USER

  1. Log out and log in again to the operating system, finish all user sessions in the console, use SSH or restart the server.

  1. Check if Docker was installed correctly:

% docker run hello-world

As a result, the Docker test image is loaded, the test container is started and the response with the operation status is obtained.

% docker version

As a result, the response with client version and Docker component server version is obtained:

Client:
Version:
....
....

Server:
Version:
....
....

  1. Delete the test container and the Docker image:

% docker container rm $(docker container ls –aq) && docker image rm $(docker image ls –aq)

After executing the operation, Docker components are installed to the server.

Installing the docker-compose Utility

To install the docker-compose utility, execute the commands depending on the version of Foresight Mobile Platform:

% sudo apt install docker-compose-v2
% docker compose version

% sudo apt install docker-compose
% docker-compose --version

After executing the operations the docker-compose utility is installed and the utility version title is displayed.

See also:

Installing and Setting Up Foresight Mobile Platform | Standalone Configuration | Activation and License Management