• Stars
    star
    952
  • Rank 48,013 (Top 1.0 %)
  • Language
    Dockerfile
  • License
    MIT License
  • Created about 8 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Docker image for Airbnb's Superset

Superset

version latest edge

Docker image for Superset.

This project is unofficial and not related to Superset or Apache.

Download

Download this image from the Docker registry:

docker pull amancevice/superset:<version>

Building

I DO NOT recommend building this image directly from the Dockerfile included in this repository.

If you wish to extend this image then the best course of action is to write your own Dockerfile that extends this image. Eg,

FROM amancevice/superset:<version>
USER root
# Your changes...
USER superset

Issues

Please ONLY file issues in this project that are related to Docker and DO include the Docker commands or compose configuration of your setup when filing issues (be sure to hide any secrets/passwords before submitting).

File issues/bugs with Superset at the source.

Please DO NOT files issues like "Please include <some-python-pip> in the Dockerfile," open a pull request for updates/enhancements.

Examples

Navigate to the examples directory to view examples of how to configure Superset with MySQL, PostgreSQL, or SQLite.

Versions

This repo is tagged in parallel with superset. Pulling amancevice/superset:0.18.5 will fetch the image of this repository running superset version 0.18.5. It is possible that the latest tag includes new features/support libraries but will usually be in sync with the latest semantic version.

Configuration

Follow the instructions provided by Apache Superset for writing your own superset_config.py. Place this file in a local directory and mount this directory to /etc/superset inside the container. This location is included in the image's PYTHONPATH. Mounting this file to a different location is possible, but it will need to be in the PYTHONPATH.

View the contents of the examples directory to see some simple superset_config.py samples.

Volumes

The image defines two data volumes: one for mounting configuration into the container, and one for data (logs, SQLite DBs, &c).

The configuration volume is located alternatively at /etc/superset or /home/superset; either is acceptable. Both of these directories are included in the PYTHONPATH of the image. Mount any configuration (specifically the superset_config.py file) here to have it read by the app on startup.

The data volume is located at /var/lib/superset and it is where you would mount your SQLite file (if you are using that as your backend), or a volume to collect any logs that are routed there. This location is used as the value of the SUPERSET_HOME environmental variable.

Database Initialization

After starting the Superset server, initialize the database with an admin user and Superset tables using the superset-init helper script:

docker run --detach --name superset [options] amancevice/superset
docker exec -it superset superset-init

Upgrading

Upgrading to a newer version of superset can be accomplished by re-pulling amancevice/supersetat a specified superset version or latest (see above for more on this). Remove the old container and re-deploy, making sure to use the correct environmental configuration. Finally, ensure the superset database is migrated up to the head:

# 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

# Sync the base permissions
docker exec superset-new superset init

More Repositories

1

yake

A Rake-like DSL for writing AWS Lambda handlers
Ruby
169
star
2

terraform-aws-slackbot

Serverless Extensible Slackbot
Python
84
star
3

docker-pandas

Base Docker image for Pandas installed on Debian/Alpine Linux
Makefile
53
star
4

terraform-aws-serverless-pypi

Serverless PyPI backed by S3
HCL
53
star
5

influxalchemy

Query InfluxDB using SQLAlchemy-style syntax
Python
50
star
6

terraform-aws-custom-ecr-domain

Set up a custom DNS entry for ECR
HCL
37
star
7

caravel

Docker image for AirBnB's Caravel
Python
35
star
8

rumrunner

Rake-based utility for building multi-stage Dockerfiles.
Ruby
34
star
9

redpanda

Pandas-SQLAlchemy integration
Python
28
star
10

flatsplode

Flatten/Explode JSON objects
Python
17
star
11

aws-sts-assume-role

GitHub Action to assume an AWS IAM role and export the credentials to ENV
JavaScript
16
star
12

python-lambda-gateway

Simple HTTP server to invoke a Lambda function locally
Python
15
star
13

nextcloud-heroku

Deploy nextcloud on heroku
Shell
14
star
14

fest

Sync public facebook page events to Google Calendar
Python
13
star
15

slackend

Simple asynchronous back end for Slack apps
JavaScript
12
star
16

docker-influxdb-cluster

Docker definiton for configurable InfluxDB node building
Shell
9
star
17

spin

Execute a command and display a scrolling block of logs
Shell
9
star
18

dip

Distribute CLIs using docker-compose
Python
8
star
19

lambda-compose

Developing Python applications for AWS Lambda
Makefile
6
star
20

terraform-aws-slackbot-slash-command

Generic slash command handler for Slack
Python
6
star
21

requests-iamauth

Use AWS SigV4 authorization with requests
Python
6
star
22

terraform-aws-group-sms

Send SMS messages to a group via AWS SNS
HCL
6
star
23

setup-code-climate

Setup Code Climate test reporter binary to use with your GitHub Actions workflows
JavaScript
5
star
24

pline

AWS Pipeline Wrapper for boto3
Python
5
star
25

knackhq

Python wrapper for KnackHQ API
Python
5
star
26

slack-drive

Manage sharing of Google Docs using Slack channels
JavaScript
5
star
27

envopt

Wrapper for docopt to allow ENV variables as argument defaults
Python
4
star
28

terraform-google-slack-events

Publish Slack events to Google Cloud Pub/Sub using Cloud Functions
HCL
3
star
29

terraform-aws-lambda-basic-execution-role

Lambda IAM role with AWSLambdaBasicExecution policy attached
HCL
2
star
30

python-lambo

Simple and visually pleasing logger for AWS Lambda
Python
2
star
31

terraform-aws-auth0-authorizer

Authorizer Lambda for API Gateway custom authorizers.
HCL
2
star
32

furi

Interact with local & remote files by URI
Python
2
star
33

language-pipfile

Pipfile syntax highlighting for Atom
1
star
34

the-good-docker-icon

That's it
1
star
35

terraform-aws-facebook-gcal-sync

Synchronize facebook page events with Google Calendar
HCL
1
star
36

terraform-aws-serverless-pypi-cognito

Basic auth for the serverless-pypi Terraform module using AWS Cognito
HCL
1
star
37

block-kit

Slack Block Kit Builder for Electron
JavaScript
1
star
38

slack-sms

Send SMS message from Slack slash commands
JavaScript
1
star
39

terraform-aws-express-lambda-layer

Lambda layer for express/aws-serverless-express
HCL
1
star
40

terraform-heroku-facebook-gcal-sync

Synchronize facebook page events with Google Calendar
HCL
1
star
41

icalendar-google

Google Calendar extension for iCalendar
Ruby
1
star
42

docker-fishshell

Lightweight docker image running the fishshell on ubuntu
Shell
1
star
43

finparse

Parse financial strings to number objects
Python
1
star
44

terraform-google-cloud-project

Terraform configuration for generic Google Cloud Project
HCL
1
star