In this article:
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:
Prepare virtualization environment if a virtual server is used. Foresight Mobile Platform supports Oracle VirtualBox, VMware Workstation and Microsoft Hyper-V.
Make sure that the operating system meets the system requirements.
Install the curl tool to send data from server.
Install the docker-compose utility to simultaneously manage several containers included in the application.
After executing the operation the server is prepared for installing a mobile platform server.
To install Docker components:
Enter the server console locally or remotely using SSH client.
Delete earlier versions of Docker:
% sudo dnf remove docker-ce docker.io docker-engine
% rm -rf /var/lib/docker
The specified components are possibly absent in the system.
Update Docker components:
% sudo dnf update && sudo dnf upgrade
Connect the Docker repository for the operating system in use:
% sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
Install Docker packages:
% sudo dnf install docker-ce --allowerasing -y
Add the current account to the Docker group of users to start containers without requesting root privileges:
% sudo usermod -aG docker $USER
Log out and log in again to the operating system, finish all user sessions in the console, use SSH or restart the server.
Enable automatic startup of Docker on computer startup:
% sudo systemctl enable --now docker
Check if Docker was installed correctly:
If there is an Internet connection, execute the command:
% 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
If there is no Internet connection, execute the command:
% docker version
As a result, the response with client version and Docker component server version is obtained:
Client:
Version:
....
....
Server:
Version:
....
....
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 operation, Docker components are installed to server.
To install the curl tool, execute the command:
% sudo dnf install -y curl
After executing the operations the curl tool is installed to send data from a mobile platform server.
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.
See also:
Installing and Setting Up Foresight Mobile Platform | Activation and License Management