foliolib.helper.platform.install_platform

foliolib.helper.platform.install_platform(platform: str, tenantid: str, node: str = None, loadSample: bool = False, loadReference: bool = False, deploy_async=False, **kwargs)

Install a folio platform.

Parameters
  • platform (str) – Path to the folder of the folio platform.

  • tenantid (str) – tenant id

  • node (str) – The node id on which module should be deployed. Default first node from nodes list.

  • loadSample (bool, optional) – load samples. Defaults to False.

  • loadReference (bool, optional) – load example reference data. Defaults to False.

  • deploy_async (bool, optional) – Wether to deploy asynchronously. Defaults to False.

  • **kwargs (properties) – Keyword Arguments

Keyword Arguments
  • ignoreErrors (boolean) – default = false Okapi 4.2.0 and later, it is possible to ignore errors during the install operation. This is done by supplying parameter ignoreErrors=true. In this case, Okapi will try to upgrade all modules in the modules list, regardless if one of them fails. However, for individual modules, if they fail, their upgrade will not be commited. This is an experimental parameter which was added to be able to inspect all problem(s) with module upgrade(s).

  • invoke (boolean) – default = true Whether to invoke for tenant init/permissions/purge

  • npmSnapshot (boolean) – default = true Whether to include NPM module snapshots (default:true).

  • preRelease (boolean) – default = true Whether pre-releases should be considered for installation.

  • purge (boolean) – default = false Disabled modules will also be purged.

  • reinstall – (boolean - default: false) Whether to install modules even if up-to-update.

  • simulate (boolean) – default = false Whether the installation is simulated