Skip to main content

Docker Installation

There are two ways to install with docker

  1. Quickstart with default image
  2. Customizing docker image

1. Quickstart with docker

coming soon...

2. Customizing docker image building it and using it to deploy superset

Tutorial to follow along

Steps For youtube

  1. To create custom docker image lets clone superset's github Repo using following command. To reduce time and resources we will only clone till depth 1 and for this tutorial I am selecting 4.0 branch.

    git clone --depth=1 -b 4.0 https://github.com/apache/superset.git
  2. Let's move to directory

    cd superset
  3. Create a dir I am calling it to_be_copied and create following directory structure in it

    - to_be_copied_into_assets
    - {your_project_}images
    - logo.png
    - favicon.png
  4. Open Dockerfile find WORKDIR /app for me it is on line 65 (In future it might change). Add following code below it

    COPY --chown=superset:superset to_be_copied_into_assets /app/superset/static/assets
  5. Creating docker image using following command

    docker build -t shan-superset .
  6. Need to do few changes to get our image running open docker-compose-non-dev.yml and change image name to shan-superset

  7. Once done lets try to run it using

    docker compose -f docker-compose-non-dev.yml up
  8. Check the logs and check if everything is running fine you can use -d flag as shown below.

    docker compose -f docker-compose-non-dev.yml up -d