Deploy Bold BI on Azure container Instance
This section explains how to install the Bold BI application on Azure Container Instance.
Prerequisites
- Azure CLI
- Azure Resource Group
- Azure storage account
- Two File Shares are created in the name of boldbi and nginx on the storage account.
Steps to deploy the Bold BI application on Azure Container Instance
-
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
-
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
-
Enter the storageAccountName and storageAccountKey in configuration file.
Example:
storageAccountName: filestorageboldbi
storageAccountKey: naskjnsadnncalnnks=ajdsnkda
-
-
Open the terminal or PowerShell on the local machine and activate the Azure account using AzureCLI.
-
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
-
Once the container is created in the Azure instance, you can obtain the output text for the resource creation directly in the terminal.
-
You can access the application on the public DNS that is generated within the Container instance itself.
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.
- Add a CNAME binding for your domain (example.boldbi.com) with the generated endpoint (example.azurecontainer.io).
- Navigate to the
nginx
file share that was created in the storage account. - Upload the certificate file (domain.crt) and private key (domain.key) that were used for the custom domain to the nginx folder.
- Open the
boldbi-nginx-config
file in edit mode.
- 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 - Once the changes are done, navigate to the container instance and restart the service.
- After restarting, the site can be accessed through the provided custom domain.