Step 6 - Deploy Nirmata Services

  1. SSH to your Nirmata Services Node
  2. Edit the script nirmata-pe.sh to update the following fields with correct values:

    a. DOCKER_REGISTRY: IP address or DNS name of your Docker private registry

    b. DOCKER_USERNAME: Username used to login to the Docker private registry

    c. DOCKER_PASSWORD: Password used to login to the Docker privateregistry

    d. PRIVATE_IP: Private IP address of your Node

    e. BACKEND_IP: Private IP of your Node (must be same as PRIVATE_IP)

    f. DATA_DIR: Directory that will contain all the logs and data

    g. BACKUP_DIR: Directory where database backups must be stored

    h. NIRMATA_URL: URL that will be used to connected to Nirmata

    i. CERTIFICATE: Certificates associated to NIRMATA_URL

    j. KEY: PEM key associated to NIRMATA_URL

    k. ADMIN_NAME: Name of the Nirmata super admin user

    l. ADMIN_PASSWORD: Password of the Nirmata super admin user

    m. ADMIN_EMAIL: Email of the super admin user

    n. TENANT_NAME: Name of the first tenant. You can use your company name or team name for instance.

    o. TENANT_OWNER_EMAIL: Email of the user responsible for this tenant

    p. USER_NAME: Name of the first Nirmata user

    q. USER_PASSWORD: Password of the first Nirmata user

    r. USER_EMAIL: Email of the first Nirmata user

  3. Execute the installer command: :

    ./nirmata-pe.sh install –-nirmata
    
  4. Verify that all the backend services are up and running

At the end of the execution, the command will display the list of containers running on your Node. You should see an output similar to this:

IMAGE                                                   CREATED              STATUS             
$TARGET_REGISTRY/nirmata/nginx-private-edition:latest   30 seconds ago       Up 23 seconds
$TARGET_REGISTRY/nirmata/gateway:pe_v1                  35 seconds ago       Up 31 seconds
$TARGET_REGISTRY/nirmata/host-gateway:pe_v1             43 seconds ago       Up 42 seconds
$TARGET_REGISTRY/nirmata/orchestrator:pe_v1             50 seconds ago       Up 49 seconds
$TARGET_REGISTRY/nirmata/webclient:pe_v1                About a minute ago   Up 57 seconds
$TARGET_REGISTRY/nirmata/cluster:pe_v1                  About a minute ago   Up About a minute
$TARGET_REGISTRY/nirmata/nirmata-tunnel-server:pe_v1    About a minute ago   Up About a minute
$TARGET_REGISTRY/nirmata/clientgateway:pe_v1            About a minute ago   Up About a minute
$TARGET_REGISTRY/nirmata/cloudprovider:pe_v1            About a minute ago   Up About a minute
$TARGET_REGISTRY/nirmata/analytics:pe_v1                About a minute ago   Up About a minute
$TARGET_REGISTRY/nirmata/imageregistry:pe_v1            About a minute ago   Up About a minute
$TARGET_REGISTRY/nirmata/config:pe_v1                   2 minutes ago        Up 2 minutes
$TARGET_REGISTRY/nirmata/security:pe_v1                 2 minutes ago        Up 2 minutes
$TARGET_REGISTRY/nirmata/users:pe_v1                    2 minutes ago        Up 2 minutes
$TARGET_REGISTRY/nirmata/registry:pe_v1                 2 minutes ago        Up 2 minutes

In case something goes wrong or if you need to change some of the configuration parameters you can remove all the services and re-do the installation. To remove and re-install all the Nirmata services you can execute:

./nirmata-pe.sh remove –-nirmata
./nirmata-pe.sh install –-nirmata