Deployment and Preparation of Server

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:

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

  2. Install the operating system that meets system requirements.

  3. Install Docker components.

After this the server is prepared for installing mobile platform server.

Installing Components

To install Docker components:

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

  2. 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.

  1. Update packages index:

% sudo apt-get update

  1. Install pre-release packages:

% sudo apt-get install apt-transport-https ca-certificates curl software-properties-common

  1. Add official PGP key of the Docker vendor:

% curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

  1. 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"

  1. Repeat packages index update:

% sudo apt-get update

  1. Install public version of Docker:

% sudo apt-get install docker-ce

If installation completed with errors, execute the command:

$ sudo apt-get upgrade

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

% sudo usermod -aG docker $USER

  1. Restart the operating system and finish all user sessions in the console and/or via SSH or restart the server.

  2. Delete test container and image:

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

  1. 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 .....

  1. 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