Console Installation
This article contains instructions on how to install the Binalyze AIR console using Docker and it also covers the models of deployment.
- Debian Bookworm 12 (stable)
- Debian Bullseye 11 (oldstable)
- Ubuntu Lunar 23.04
- Ubuntu Kinetic 22.10
- Ubuntu Jammy 22.04 (LTS)
- Ubuntu Focal 20.04 (LTS)
- Red Hat Enterprise Linux 7 on s390x (IBM Z)
- Red Hat Enterprise Linux 8 on s390x (IBM Z)
- Red Hat Enterprise Linux 9 on s390x (IBM Z)
- CentOS 7
- CentOS 8 (stream)
- CentOS 9 (stream)
- Fedora 37
- Fedora 38
For more detail about Docker installation requirements please visit: https://docs.docker.com/engine/install/
- Docker (version 19.03.6 or higher) You can download it from: https://docs.docker.com/engine/install/
- Docker Compose (version 1.28.0 or higher to support Compose file version 3.4) You can download it from: https://docs.docker.com/compose/install/
You can deploy AIR in one of two models:
- Single Tier Deployment All platform components, such as App, Web, NATS, DB, and Redis, are installed and run on the same machine.
- 2-Tier Deployment All components except the Database Layer are installed and run on a single instance, while Database has its own dedicated instance.
Which deployment model to use?
The Single Tier Model is the quickest way of deploying AIR and is typically used for PoCs and testing purposes, while the 2-Tier Model is more suited for deployments of about 25,000+ endpoints.
The 2-Tier Model comes with a dedicated Console Server that can serve more endpoints and moves the Database into an isolated server that increases the database performance. For these larger scale deployments, our deployment team will work with you to define the optimal setup.
Before you start
- Make sure you have updated package repositories of the Operating System you are using. Please find below the commands for CentOS and Ubuntu:
For CentOS:
yum update
For Ubuntu:
apt-get update
- Start and enable docker service by executing the following command:
systemctl start docker && systemctl enable docker
Suitable for PoCs, Demos, and non-mission critical deployments.
This deployment model installs all components into a single machine.
- 1.Run the one-liner below and wait for it to completecurl -fsSL https://cdn.binalyze.com/air-deploy/console.sh | sudo -E bash
- 2.
- 1.Create a folder for the Binalyze AIR under /opt directory and cd into itmkdir /opt/binalyze-air && cd /opt/binalyze-air
- 2.Download the docker-compose.yml file and save itcurl -fsSL "https://cdn.binalyze.com/air-deploy/docker-compose.yml" -o docker-compose.yml
- 3.Create the directory for the database volume with defined access:install -d -o 1001 -g 1001 ./volumes/mongodb/bitnami/mongodb
- 4.Change the default password for NATS real-time messaging platformsed -i s/AIR_NATS_PASSWORD/$(tr -dc 'a-zA-Z0-9' </dev/urandom | fold -w 32 | head -n 1)/g docker-compose.yml
- 5.Run the following command to start Binalyze AIR installation in docker:docker-compose -p binalyze-air up -d
- 6.Wait for the installation to complete. It may take several minutes
- 7.
Suitable for Enterprise Deployments.
This deployment model requires you to deploy the Database Component first (Step 1) and then start the deployment of the Console Server (Step 2) by pointing to the database server's address.
- 1.Run the one-liner below and wait for it to complete (this script will deploy the database component - Step 1)curl -fsSL https://cdn.binalyze.com/air-deploy/db.sh | sudo -E bash
- 2.Once the database is deployed, the above script will output the commands that need to be executed on the Console Server machine (Step 2)
- 3.SSH into the Console Server machine
- 4.Run the commands provided by the above script and wait for it to complete
- 5.
You should execute the commands below on the Database Server!
- 1.SSH into Database Server
- 2.Create a folder for the Binalyze AIR DB under /opt directory and cd into itmkdir /opt/binalyze-air-db && cd /opt/binalyze-air-db
- 3.Download the docker-compose.yml file and save itcurl -fsSL "https://cdn.binalyze.com/air-deploy/docker-compose-db.yml" -o docker-compose.yml
- 4.Create the directory for the database volume with defined access:install -d -o 1001 -g 1001 ./volumes/mongodb/bitnami/mongodb
- 5.Change the default password for MongoDBsed -i s/mongo_root_password/$(tr -dc 'a-zA-Z0-9' </dev/urandom | fold -w 32 | head -n 1)/g docker-compose.yml
- 6.Run the following command to start the Binalyze AIR Database component in Docker:docker-compose -p binalyze-air-db up -d
- 7.Wait for the installation to complete. It may take several minutes.
- 8.Proceed to the installation of Console Server
You should execute the commands below on Console Server!
- 1.SSH into Console Server
- 2.Create a folder for the Binalyze AIR under /opt directory and cd into itmkdir /opt/binalyze-air && cd /opt/binalyze-air
- 3.Download the docker-compose.yml file and save itcurl -fsSL "https://cdn.binalyze.com/air-deploy/docker-compose-without-db.yml" -o docker-compose.yml
- 4.Change the default password for NATS real-time messaging platformsed -i s/AIR_NATS_PASSWORD/$(tr -dc 'a-zA-Z0-9' </dev/urandom | fold -w 32 | head -n 1)/g docker-compose.yml
- 5.Create a folder for saving the configurationmkdir -p ./volumes/app/binalyze-air/config
- 6.Set the database URI for connecting Console Server to DB IMPORTANT: You should replace DB Root Password and DB Server IP in the command below.echo "AIR_DB_URI=mongodb://root:<DB_ROOT_PASSWORD>@<DB_SERVER_IP>/airdb?authSource=admin" >> ./volumes/app/binalyze-air/config/.env
- 7.Run the following command to start Binalyze AIR installation in dockerdocker-compose -p binalyze-air up -d
- 8.Wait for the installation to complete. It may take several minutes
- 9.
Regardless of the deployment model you chose, you will be asked several configurations at the end of the deployment, such as an organization name, the credentials of the first user account, etc.
Once you have completed the above steps successfully, you should:
- 1.Visit http://IP-ADDRESS for accessing the Console (IP address here is the public IP address of the machine you have deployed Binalyze AIR)
- 2.Accept EULA and provide the configuration you are asked for in each step
- 3.Complete the setup and login using the credentials you have provided
- 4.Enjoy Binalyze AIR!
Last modified 1d ago