Updating Foresight Mobile Platform

Before updating Foresight Mobile Platform at host server check if the conditions are satisfied:

NOTE. If Relay server is installed, to provide correct work, mobile platform server and Relay server versions must match.

The logging system has been reworked in the new version. This has improved event logging and increased general system productivity. Previous logs will be unavailable on the update. To save previous logs, download them before updating the system using the Download button in the logging parameters settings.

IMPORTANT. To update to the latest version of the mobile platform, consequently update to each later version.

To update the mobile platform and the Docker subsystem deployed at the server:

  1. Go to the directory with the file docker-compose.standalone.yml of the current host server installation and stop the current platform version:

% docker-compose -f docker-compose.standalone.yml down

After successful platform stop delete the existing images:

% docker image rm $(docker image ls -q)

  1. Delete previous installation files:

  1. Download new versions of images and files to mobile platform server. Unpack the archive:

% unzip compose_files_v19.03.06_65.zip

  1. Load new images to local storage:

# load
% docker load -i fmp_v19.03.06_65.tgz

# delete archive
% rm -rf fmp_v19.03.06_65.tgz

  1. Execute the command:

% docker-compose -f docker-compose.standalone.yml run --rm -u root hhive sed -i 's|/var/hhive/static|/var/hh_static/static|g' /var/hhive/nginx/includes/dashboard.inc

NOTE. Product update is available from 18.04 version.

% docker-compose -f docker-compose.standalone.yml run --rm  hhive bash -c 'mkdir -p /var/hhive/ssh/ /var/hhive/supervisor/ && touch /var/hhive/ssh/ssh_conf_relay /var/hhive/supervisor/supervisor_ssh.conf'

  1. Execute the command to delete static elements of the previous build:

% docker volume rm hyperhive_var_static

  1. Update version of Foresight Mobile Platform:

% docker-compose -f docker-compose.standalone.yml up

After executing the operations, Foresight Mobile Platform will be updated to the latest version.

Updating Relay Server

To update Relay server:

  1. Go to the directory with the docker-compose.relay.yml file of the current installation at the host server and install the current version of Relay server:

% docker-compose -f docker-compose.relay.yml down

After successful installation of Relay server delete the existing images:

% docker image rm $(docker image ls -q)

  1. Delete previous installation files:

  1. Download new versions of images and files to mobile platform server. Unpack the archive:

% unzip compose_files_v19.03.06_65.zip

  1. Load new images to local storage:

# load
% docker load -i fmp_v19.03.06_65.tgz

# delete archive
% rm -rf fmp_v19.03.06_65.tgz

  1. Update Relay server version:

% docker-compose -f docker-compose.relay.yml up

After executing the operations Relay server is updated to the latest version.

See also:

Installing and Setting Up Foresight Mobile Platform | Managing Mobile Platform