Installing
Create a Docker Network bridge
This topic provides details on how to install BMC AMI Cloud Analytics in an on-premise environment.
Prerequisites
- 8 vCPU, 32gb RAM instance, 1TB of storage (preferably SSD)
- AWS instance types:
- m5d.2xlarge
- m5ad.2xlarge
- Docker or Podman must be installed on the instance.
- A user with docker or Podman privileges is required to run docker and Podman commands.
Installation
Task 1: To download the installation package file
Use the following procedure to obtain the installation files and a license key:
Go toElectronic Product Distribution (EPD) and login.
- In the search bar, search for BMC AMI Cloud Analytics. Both product files are composed with the same binaries.
- Click on the version you want to download.
- In the Product tab, select the file and click Download.
Move the files to the target installation system. The recommended location for the package files on the installation system is:
/data/model9/gravity/packages- Select the License Information tab and download the temporary license key.
To obtain a full license key, go toSupport Central and select Case Management.
Open a license key request by clicking on Create New Case and filling in the required information.
Task 2: To prepare for installation
Set the version environment variable:
export GRAVITY_VERSION=<v.r.m>Extract the package file:
export GRAVITY_PACKAGES=/data/model9/gravity/packages
cd $GRAVITY_PACKAGES
tar -xzvf model9-gravity-package-$GRAVITY_VERSION.tar.gz
export GRAVITY_EXTRACTED=$(pwd)/model9-gravity-$GRAVITY_VERSION
export GRAVITY_BUILD=$(cat $GRAVITY_EXTRACTED/build-id.txt)Create an installation target folder structure:
export GRAVITY_HOME=/data/model9/gravity
mkdir -p $GRAVITY_HOME/config
mkdir -p $GRAVITY_HOME/keys
mkdir -p $GRAVITY_HOME/logs
mkdir -p $GRAVITY_HOME/work
Task 3: To configure the product
Copy key stores into the $GRAVITY_HOME/keys folder:
cp $GRAVITY_EXTRACTED/keys/* $GRAVITY_HOME/keysCreate the configuration file:
cp $GRAVITY_EXTRACTED/application.properties $GRAVITY_HOME/configAfter creating the application.properties file, edit it and specify the missing values:
vi $GRAVITY_HOME/config/application.properties# ----------------------------------------
# Model9 Gravity Configuration
# Documentation: https://docs.model9.io
# Support: support@model9.io
# ----------------------------------------
model9.gravity.global.license-key=
logging.level.io.model9=INFO
For details on the configuration options and their default values, see Additional-configuration-parameters.
Task 4: To start the BMC AMI Cloud Analytics service
Load the BMC AMI Cloud Analytics docker image:
docker load --input $GRAVITY_EXTRACTED/model9-gravity-$GRAVITY_VERSION-build-$GRAVITY_BUILD.docker.gzCreate a Docker Network bridge:
docker network create -d bridge gravity-bridgeStart the BMC AMI Cloud Analytics container:
docker run --detach --publish 443:443 \
--net gravity-bridge \
--volume $GRAVITY_HOME/config:/data/model9/config:z \
--volume $GRAVITY_HOME/keys:/data/model9/keys:z \
--volume $GRAVITY_HOME/logs:/data/model9/logs:z \
--volume $GRAVITY_HOME/work:/data/model9/work:z \
--env "TZ=America/New_York" \
--env "JAVA_OPTS=-Xmx28g" \
--restart unless-stopped \
--name model9gravity-v$GRAVITY_VERSION model9/gravity:$GRAVITY_VERSION.$GRAVITY_BUILD
For tasks that you must perform immediately after installing the product, see Additional-configuration-parameters.