Superset 0.34 Installation using Docker - caprivm/virtualization GitHub Wiki

This page shows the steps that you should be follow for install a Superset 0.34 web server using docker.

Prerequesites

These are prerequesites to setting up Superset. This installation was testing in the next OS:

  • Ubuntu 20.04 LTS (recommended).
  • AMD64
  • 2 vCPU.
  • 4 GB RAM.
  • 15 GB - 20 GB SSD or HDD storage (minimum).

Install docker and docker-compose

Install docker-ce, docker-ce-cli and container.io.

# Install docker essentials.
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common && sudo apt install net-tools
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# sudo apt-key fingerprint 0EBFCD88 # Uncomment if you want validate the key
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io

Next, install docker-compose.

# Install docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

Clone and Install Superset

In old version, a python3 version was need necessary. In this case, considering that 0.34 branch is checkout, it's not necessary.

# Clone and install Superset
sudo apt-get update && sudo apt-get install -y git
git clone https://github.com/apache/incubator-superset/ ~/superset
cd ~/superset && git checkout 0.34 # Checkout the 0.34 version.
git branch # Validate the current branch used.
cd ~/superset/contrib/docker
sudo docker-compose run --rm superset ./docker-init.sh # In this step configure the user and password for access to the web UI
sudo docker-compose up --build -d

After several minutes for superset initialization to finish, you can open a browser and view http://localhost:8088 to start your journey. By default the system configures an admin user with the username of admin and a password of admin.

⚠️ **GitHub.com Fallback** ⚠️