Skip to content

Installing CHAI™ without chctl

Create target directory

mkdir /opt/appliance

Download the setup package

wget '<AWS-S3-URL-from-Mail>' -O 'singlefile.tar.gz'
Keep the single quotes (') around the URL as shown.

Extract the package

tar -zxvf singlefile.tar.gz -C /opt/appliance

user should see the following files extracted:

containers.tar
cloudhedge-db-setup-appliance.js
chctl-compose.yaml
cloudhedgeenv

Create required folder structure

mkdir -p /opt/cloudhedge
mkdir -p /opt/cloudhedge/shared
mkdir -p /opt/cloudhedge/shared/activity-service
mkdir -p /opt/cloudhedge/shared/auth-gateway-service
mkdir -p /opt/cloudhedge/shared/cloud-infra-service
mkdir -p /opt/cloudhedge/shared/core-engine
mkdir -p /opt/cloudhedge/shared/discover-service-linux
mkdir -p /opt/cloudhedge/shared/discover-service-aix
mkdir -p /opt/cloudhedge/shared/discover-service-windows
mkdir -p /opt/cloudhedge/shared/license-service
mkdir -p /opt/cloudhedge/shared/notification-service
mkdir -p /opt/cloudhedge/shared/report-service
mkdir -p /opt/cloudhedge/shared/transform-service-linux
mkdir -p /opt/cloudhedge/shared/transform-service-windows
mkdir -p /opt/cloudhedge/shared/vault-service
mkdir -p /opt/cloudhedge/shared/webapp

Update permissions for folders

chmod -R 777 /opt/cloudhedge/shared
chown -R root:root /opt/cloudhedge/shared

Load Docker containers

cd /opt/appliance
docker load -i ./containers.tar

Run and start the db-service container

To get the image name for db-service, run the command below and copy the image name:

docker images | grep db-service
+ Replace <db-service_image_name> with the actual db-service image name.
docker run -d --name db-service -p 27017:27017 -v /opt/cloudhedge/mongodb-vol:/data/db <db-service_image_name>:tag

Eg: docker run -d --name db-service -p 27017:27017 -v /opt/cloudhedge/mongodb-vol:/data/db 123456789.dkr.ecr.us-east-1.amazonaws.com/public/db-service:7.0.12

Copy the seed database script to the container

docker cp cloudhedge-db-setup-appliance.js db-service:/

Load the seed data into MongoDB

docker exec -it db-service bash
mongosh < cloudhedge-db-setup-appliance.js

Let the process to be completed.

Create MongoDB authentication user

mongosh

Inside the Mongo shell:

var cloudhedgeuser = { "user": "chadmin", "pwd": "CHAdmin$123", "roles": [ "readWrite", "dbAdmin" ] };
use ch-db;
db.createUser(cloudhedgeuser);

Exit the MongoDB shell

exit

Exit the Docker container shell

exit

Stop and remove the db-service container

docker stop db-service
docker rm db-service

Edit cloudhedgeenv file

Update the following values:

DB_USER=chadmin
DB_PASSWORD=CHAdmin$123

Modify chctl-compose.yaml

In the db-service section, add the line below before the expose line:

command: ["mongod", "--auth"]

It should look like:

command: ["mongod", "--auth"]
expose:
   - 27017
Ensure correct YAML indentation.

Start the appliance using chctl-compose file

docker compose -f chctl-compose.yaml up -d

Access the application via browser

Open Google Chrome and go to:

https://<server-ip-address>

Login Credentials:

Username: onprem@cloudhedge.io
Password: chdevrocks

Please change the default password on your first login.