Foresight Mobile Platform works in the Docker containerization environment. Set up and deploy the Docker subsystem infrastructure at mobile platform server and at Relay server, if it is used.
To deploy the server:
Prepare virtualization environment if virtual server is used. Foresight Mobile Platform supports Oracle VirtualBox, VMware Workstation and Microsoft Hyper-V.
Install the operating system that meets system requirements.
Install Docker components.
After this the server is prepared for installing mobile platform server.
To install Docker components:
Enter the server console locally or remotely using SSH client.
Delete earlier versions of Docker if it is unknown if it was installed at the server:
% sudo apt-get remove docker docker-engine docker.io
The specified components may be absent in the system.
Update packages index:
% sudo apt-get update
Install pre-release packages:
% sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
Add official PGP key of the Docker vendor:
% curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Connect repository of stable Docker version for the OS in use:
% sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
If installation completed with errors, execute the command:
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
Repeat packages index update:
% sudo apt-get update
Install public version of Docker:
% sudo apt-get install docker-ce
If installation completed with errors, execute the command:
$ sudo apt-get upgrade
Add the current account to the Docker group to start containers without requesting root privileges (root):
% sudo usermod -aG docker $USER
Restart the operating system and finish all user sessions in the console and/or via SSH or restart the server.
Delete test container and image:
% docker container rm $(docker container ls –aq) && docker image rm $(docker image ls –aq)
Install the docker-compose utility:
% sudo curl -L https://github.com/docker/compose/releases/download/1.20.1/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
% sudo chmod +x /usr/local/bin/docker-compose
% docker-compose --version
After successful installation the last command displays header of the docker-compose utility version:
% docker-compose --version
docker-compose version ....., build .....
Check Docker performance (only if there is access to internet).
Start the test container. The command loads the test Docker image and starts the test container. This command results in the text block that indicates whether operation is successful:
% docker run hello-world
If there is no access to internet, Docker performance can be checked by the following command:
% docker version
As a result, the response is obtained about Client version and Server version of Docker components:
% docker version
Client:
Version:
....
....
Server:
Version:
....
....
If both items are absent, installation is executed with error.
After this, Docker components are installed to server.
See also:
Installing and Setting Up Foresight Mobile Platform | Activation and License Management