A starter kit to dockerize a Business Intelligence Project

Customize Atoti Dockerfile for quick deployment Docker is one of the leading open-source DevOps containerization tools. It enables…

Hui Fang Yeo
March 03, 2021
Scroll to read the aricle

A starter kit to dockerize a Business Intelligence Project

Customize Atoti Dockerfile for quick deployment

Docker is one of the leading open-source DevOps containerization tools. It enables us to package our applications and the dependencies into containers, making it easy to deploy and run the application. Here, we will see how to dockerize a BI project.

Pre-requisite

You should have Docker installed on your machine. Refer to the Docker get-started guide if you haven’t.

UPDATE: This article is based on an older version of Atoti. Check out the latest Atoti documentation for the most updated information.

Steps to dockerize

The diagram below shows how to get an application dockerized. Refer to this Docker blog for more details.

 

Image from Docker blog

 

Some high-level definitions:

  • Dockerfile: Set of instructions to build the Docker image. This includes the dependencies installation, folders creations etc.
  • Docker image: Set of processes as outlined in the Dockerfile to create the container.
  • Docker containers: An instance of the Docker image with the application ready for use.

Instead of going through the full details of how to dockerize, we speed up the process of dockerizing an Atoti Business Intelligence project with the ready-to-use Atoti Docker image.

Atoti Docker image

Atoti distributes an official image on Docker Hub. The image comes with the Atoti library and its JupyterLab extension ready to use.

You may use the Dockerfile as a base image to add new layers necessary for your application.

In this article, we will define a password instead of the token authentication that is defaulted in JupyterLab. We will modify the Dockerfile as highlighted below:

 

 

Note: You could also disable authentication altogether by setting the token and password to empty strings. This is however not recommended in its documentation.

You can rebuild the image with the command:

docker build -t Atoti .

Running the Docker image

Before you run the command to run the Docker image, remember to create a volume to persist the data such as your notebooks and files:

docker volume create Atoti-volume

Run the image using the create volume with the following command:

docker run — publish 8888:8888 — volume Atoti-volume:/home/jovyan/work Atoti/atoti

Access the BI dashboards

We can now run our Atoti notebooks, build and access the dashboards that are saved previously.

 

 

Check out the Atoti documentation to find out more about what you can do with it.

 

Join our Community

Join our thriving article community and start sharing your insights today!

Like this post? Please share

Latest Articles

View all

Retail Banking Analytics with Atoti

Make smarter decisions by analyzing consumer credit cards and risk profiles. Retail banking, otherwise known as consumer...

Putting Python Code in Production

Python is great for research, but can you really use it for production quality projects? Python, once...

Changes ahead: Atoti Server 6.0-springboot3

ActiveViam is upgrading version 6.0 of Atoti Server from Spring Boot 2 to Spring Boot 3 to...
Documentation
Information
Follow Us

Atoti Free Community Edition is developed and brought to you by ActiveViam. Learn more about ActiveViam at activeviam.com

Follow Us