Articles in this section
Category / Section

Deploy Bold BI on Azure container Instance

Published:

This section explains how to install the Bold BI application on Azure Container Instance.

Prerequisites

Steps to deploy the Bold BI application on Azure Container Instance

  1. Create a configuration file with the name boldbi.yaml for the Bold BI application.

    apiVersion: '2019-12-01'
    location: <location>
    name: BoldBI
    properties:
    containers:
    - name: boldbi
        properties:
        environmentVariables: []
        image: syncfusion/boldbi:latest
        ports:
        - port: 80
        - port: 443
        resources:
            requests:
            cpu: 2.0
            memoryInGB: 4
        volumeMounts:
        - mountPath: /application/app_data
            name: filesharevolume
        - mountPath: /etc/nginx/sites-available
            name: nginxconfigvolume
    osType: Linux
    restartPolicy: Always
    ipAddress:
        type: Public
        ports:
        - port: 80
        - port: 443
        dnsNameLabel: <dns-name-label>
    volumes:
    - name: filesharevolume
        azureFile:
        sharename: boldbi
        storageAccountName: <storage-account-name>
        storageAccountKey: <storage-account-key>
    - name: nginxconfigvolume
        azureFile:
        sharename: nginx
        storageAccountName: <storage-account-name>
        storageAccountKey: <storage-account-key>
    tags: {}
    type: Microsoft.ContainerInstance/containerGroups
    
    
    • location - Choose the location where you plan to deploy your app. Our recommended location is eastus

      image.png

    • In the resources section, you can increase the configuration as shown below:
      Example:

      requests:
          cpu: 4.0
          memoryInGB: 8
      
    • dnsNameLabel - Specify a DNS name label for your container. The name must be unique within the Azure region where you create the container instance. Your container will be publicly reachable at <dns-name-label>.<region>.azurecontainer.io

      image.png

    • Enter the storageAccountName and storageAccountKey in configuration file.
      Example:
      storageAccountName: filestorageboldbi
      storageAccountKey: naskjnsadnncalnnks=ajdsnkda

      image.png

  2. Open the terminal or PowerShell on the local machine and activate the Azure account using AzureCLI.

  3. Run the following command to deploy the Bold BI application on Azure portal.

    az container create --resource-group <resource group="" name=""> --file <configuration file="" with="" path="">
    

    Example : - az container create --resource-group boldbi --file D:\boldbi.yaml

    image.png

  4. Once the container is created in the Azure instance, you can obtain the output text for the resource creation directly in the terminal.

  5. You can access the application on the public DNS that is generated within the Container instance itself.

    image.png

SSL Configuration

If you want to configure the SSL and access the application with a custom domain, follow the steps below. Otherwise, you can skip these steps.

  1. Add a CNAME binding for your domain (example.boldbi.com) with the generated endpoint (example.azurecontainer.io).
    image.png
  2. Navigate to the nginx file share that was created in the storage account.
  3. Upload the certificate file (domain.crt) and private key (domain.key) that were used for the custom domain to the nginx folder.
    image.png
  4. Open the boldbi-nginx-config file in edit mode.
    image.png
  5. Follow the document below for SSL changes in the nginx file for the Bold BI application. .
    https://github.com/boldbi/boldbi-docker/blob/main/docs/ssl-termination.md
  6. Once the changes are done, navigate to the container instance and restart the service.
    image.png
  7. After restarting, the site can be accessed through the provided custom domain.

Next step

Additional Reference:
  1. Bold BI supported environment variables and their usage?
  2. How to deploy the Bold BI application in an on-premises environment.
  3. How to deploy Bold BI application in azure app service?
Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
SS
Written by Sivanesan Saravanan
Updated
Comments (0)
Please  to leave a comment
Access denied
Access denied