Deployment and Preparation of Astra Linux-Based Cluster

In this article:

Connecting to Network Repository

Installing Docker Components

Installing the curl Tool

Installing the docker-compose Utility

Disconnecting from Network Repository

Foresight Mobile Platform works in the Docker containerization environment. Set up and deploy the Docker subsystem infrastructure on a mobile platform server and on a 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. Connect to network repository.

  4. Install Docker components.

  5. Install the curl tool to send data from server.

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

  7. Disconnect from network repository if required.

After executing the operations the server is prepared for installing a mobile platform server.

Connecting to Network Repository

To connect to network repository:

  1. Install the apt-transport-https, ca-certificates packages to work with the HTTPS protocol:

% sudo apt install apt-transport-https ca-certificates

  1. Open the sources.list file in a text editor:

% sudo vi /etc/apt/sources.list

  1. Add the specified string to the sources.list file:

deb https://download.astralinux.ru/astra/stable/orel/repository orel contrib main non-free

  1. Update the package index:

% sudo apt update

After executing the operations the network repository is connected to install Docker components.

Installing Docker Components

To install Docker components:

  1. Enter the server console locally or remotely using SSH client.

  2. Delete earlier versions of Docker:

% sudo apt-get remove docker docker-engine docker.io

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 group of users 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 test Docker 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 text container and the Docker image:

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

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

Installing the curl Tool

To install the curl tool, execute the command:

% sudo apt install curl

After executing the operations the curl tool is installed to send data from a mobile platform server.

Installing the docker-compose Utility

To install the docker-compose utility, execute the commands:

% sudo curl -L https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
% sudo chmod +x /usr/local/bin/docker-compose
% docker-compose --version

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

Disconnecting from Network Repository

To disconnect from network repository:

  1. Open the sources.list file in a text editor:

% sudo vi /etc/apt/sources.list

  1. Comment the string added at Step 3:

#deb https://download.astralinux.ru/astra/stable/orel/repository orel contrib main non-free

  1. Update the package index:

% sudo apt update

After executing the operations the network repository is disconnected.

See also:

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