Giter Site home page Giter Site logo

superset-custom-authentication's Introduction

Apache Superset Custom Authentication

Apache Superset is an amazing open source platform. This repository provides reference implementations to help customize Superset's Authentication flow.

Pre-requisites

  • Docker v18+

Docker installation on AWS EC2

Please refer Amazon EC2 docs - Docker section, for any latest change. On a high level, following command should help

sudo yum update
sudo yum install -y docker
sudo usermod -a -G docker ec2-user
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` | sudo tee /usr/local/bin/docker-compose > /dev/null
sudo chmod +x /usr/local/bin/docker-compose
sudo service docker start
sudo chkconfig docker on

First time

Let's download the superset docker image, create a container and start the container.

sh run-docker.sh - contains the required commands to get you started

Superset needs to initialize the database and create admin user account. Please execute the following command

docker exec -it superset superset-init

Connecting to dataSources

To visualize the data, we need to connect Superset with our desired database. For example, to connect to a postgres database in host system (let's say for Mac), use following configuration in the config/superset_config.py

SQLAlchemy URI : postgresql://username:[email protected]:5432/database

Start superset

After the first time, the container is already created and it's ready to be used. Simply run the following command to start the container

docker container start superset

view logs: docker logs -f superset

load examples: docker exec -it superset superset load_examples

Upgrading docker images

# Pull desired version
docker pull amancevice/superset

# Remove the current container
docker rm -f superset-old

# Deploy a new container ...
docker run --detach --name superset-new [options] amancevice/superset

# Upgrade the DB
docker exec superset-new superset db upgrade

superset-custom-authentication's People

Contributors

sairamkrish avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.